diff options
author | Fabian Vogt <fvogt@suse.de> | 2023-01-31 10:22:52 +0100 |
---|---|---|
committer | Fabian Vogt <fvogt@suse.de> | 2023-02-01 09:34:04 +0100 |
commit | bfd2bb4f70d2c155c1bd281ce0ea6b106ec0e2fb (patch) | |
tree | 84a3d4ce39dc06efc665799f9fef0629350eff74 /main.c | |
parent | 14b042d2061409540c6f645271bf562d15cc14cb (diff) |
Avoid depending on xproto
makedepend is rather early in the distro bootstrap chain, so it shouldn't pull
in anything it doesn't really need.
xproto is only pulled in for two macros which we can just as easily provide
ourselves.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 14 |
1 files changed, 1 insertions, 13 deletions
@@ -29,21 +29,9 @@ in this Software without prior written authorization from The Open Group. #define sigvec sigvector #endif /* hpux */ -#ifdef X_POSIX_C_SOURCE -#define _POSIX_C_SOURCE X_POSIX_C_SOURCE #include <signal.h> -#undef _POSIX_C_SOURCE -#else -#if defined(X_NOT_POSIX) || defined(_POSIX_SOURCE) -#include <signal.h> -#else -#define _POSIX_SOURCE -#include <signal.h> -#undef _POSIX_SOURCE -#endif -#endif - #include <stdarg.h> +#include <unistd.h> #ifdef __sun #include <sys/utsname.h> |