Source-Changes-HG archive

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

[src/trunk]: src/include Add getsid(2) to the XOPEN namespace (again)



details:   https://anonhg.NetBSD.org/src/rev/c6371a1062ee
branches:  trunk
changeset: 1008697:c6371a1062ee
user:      kamil <kamil%NetBSD.org@localhost>
date:      Tue Mar 31 16:50:31 2020 +0000

description:
Add getsid(2) to the XOPEN namespace (again)

diffstat:

 include/unistd.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 33d91456a2e7 -r c6371a1062ee include/unistd.h
--- a/include/unistd.h  Tue Mar 31 16:49:06 2020 +0000
+++ b/include/unistd.h  Tue Mar 31 16:50:31 2020 +0000
@@ -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 @@
 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
 



Home | Main Index | Thread Index | Old Index