summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c
index e3a1e89..b665f71 100644
--- a/src/window.c
+++ b/src/window.c
@@ -19,6 +19,11 @@
* Boston, MA 02111-1307 USA
*/
+/* Citing getsid(2) here:
+ To get the prototype under glibc, define both _XOPEN_SOURCE and
+ _XOPEN_SOURCE_EXTENDED, or use "#define _XOPEN_SOURCE n" for some
+ integer n larger than or equal to 500. */
+#define _XOPEN_SOURCE 500
#include <unistd.h> /* for getsid */
#include <stdio.h>
#include <stdlib.h>