Module Name:    src
Committed By:   kamil
Date:           Tue Mar 31 16:50:31 UTC 2020

Modified Files:
        src/include: unistd.h

Log Message:
Add getsid(2) to the XOPEN namespace (again)


To generate a diff of this commit:
cvs rdiff -u -r1.155 -r1.156 src/include/unistd.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/include/unistd.h
diff -u src/include/unistd.h:1.155 src/include/unistd.h:1.156
--- src/include/unistd.h:1.155	Tue Mar 31 16:49:06 2020
+++ src/include/unistd.h	Tue Mar 31 16:50:31 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: unistd.h,v 1.155 2020/03/31 16:49:06 kamil Exp $	*/
+/*	$NetBSD: unistd.h,v 1.156 2020/03/31 16:50:31 kamil Exp $	*/
 
 /*-
  * Copyright (c) 1998, 1999, 2008 The NetBSD Foundation, Inc.
@@ -236,7 +236,8 @@ __aconst char *crypt(const char *, const
 int	 encrypt(char *, int);
 char	*getpass(const char *);
 #endif
-#if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE)
+#if defined(_XOPEN_SOURCE) || (_POSIX_C_SOURCE - 0) >= 200809L || \
+    defined(_NETBSD_SOURCE)
 pid_t	 getsid(pid_t);
 #endif
 

Reply via email to