summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorFabian Vogt <fvogt@suse.de>2023-01-31 10:22:52 +0100
committerFabian Vogt <fvogt@suse.de>2023-02-01 09:34:04 +0100
commitbfd2bb4f70d2c155c1bd281ce0ea6b106ec0e2fb (patch)
tree84a3d4ce39dc06efc665799f9fef0629350eff74 /main.c
parent14b042d2061409540c6f645271bf562d15cc14cb (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.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/main.c b/main.c
index cffa27b..8b23029 100644
--- a/main.c
+++ b/main.c
@@ -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>