bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] define _POSIX_C_SOURCE in ncurses/tty/lib_tstp.c


From: Valentin Ochs
Subject: [PATCH] define _POSIX_C_SOURCE in ncurses/tty/lib_tstp.c
Date: Sun, 10 Apr 2011 03:23:54 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Hi,

lib_tstp.c uses sigset_t without defining _POSIX_C_SOURCE. This breaks
compilation with musl (http://www.etalabs.net/musl/), a new libc. The
attached patch removes the definition of _POSIX_SOURCE, which was not
actually used anywhere, and puts the newer _POSIX_C_SOURCE above the
includes.

Best regards,
Valentin

--- a/ncurses/tty/lib_tstp.c    2011-04-10 02:51:19.620000022 +0200
+++ b/ncurses/tty/lib_tstp.c    2011-04-10 03:07:59.048000020 +0200
@@ -38,14 +38,14 @@
 **     The routine _nc_signal_handler().
 **
 */
+#ifndef _POSIX_C_SOURCE
+#define _POSIX_C_SOURCE 200809L
+#endif
+
 #include <curses.priv.h>
 
 #include <SigAction.h>
 
-#if SVR4_ACTION && !defined(_POSIX_SOURCE)
-#define _POSIX_SOURCE
-#endif
-
 MODULE_ID("$Id: lib_tstp.c,v 1.37 2008/05/03 16:24:56 tom Exp $")
 
 #if defined(SIGTSTP) && (HAVE_SIGACTION || HAVE_SIGVEC)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]