Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] define _GNU_SOURCE for sigset_t test
- X-seq: zsh-workers 28989
- From: Valentin Ochs <a@xxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] define _GNU_SOURCE for sigset_t test
- Date: Tue, 12 Apr 2011 13:51:21 +0200
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hi,
the current configure script does not define _GNU_SOURCE when testing
for the presence of sigset_t. This breaks compatibility with musl
(http://www.etalabs.net/musl/). The attached patch fixes that.
Best regards,
Valentin
---
diff -upr zsh-4.3.11/configure.ac zsh/configure.ac
--- zsh-4.3.11/configure.ac 2010-09-23 11:42:05.000000000 +0200
+++ zsh/configure.ac 2011-04-12 13:13:30.942000061 +0200
@@ -983,7 +983,8 @@ dnl <sys/types.h> and <signal.h>. Other
dnl to be added.
AC_CACHE_CHECK(for sigset_t, zsh_cv_type_sigset_t,
[AC_TRY_COMPILE(
-[#include <sys/types.h>
+[#define _POSIX_C_SOURCE 200809L
+#include <sys/types.h>
#include <signal.h>], [sigset_t tempsigset;],
zsh_cv_type_sigset_t=yes, zsh_cv_type_sigset_t=no)])
AH_TEMPLATE([sigset_t],
Messages sorted by:
Reverse Date,
Date,
Thread,
Author