From bfd2bb4f70d2c155c1bd281ce0ea6b106ec0e2fb Mon Sep 17 00:00:00 2001 From: Fabian Vogt Date: Tue, 31 Jan 2023 10:22:52 +0100 Subject: 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. --- main.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'main.c') 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 -#undef _POSIX_C_SOURCE -#else -#if defined(X_NOT_POSIX) || defined(_POSIX_SOURCE) -#include -#else -#define _POSIX_SOURCE -#include -#undef _POSIX_SOURCE -#endif -#endif - #include +#include #ifdef __sun #include -- cgit v1.2.3