Module Name: src Committed By: kamil Date: Tue Mar 31 16:49:06 UTC 2020
Modified Files: src/include: unistd.h Log Message: Expose getsid(2) to POSIX >= 2008 To generate a diff of this commit: cvs rdiff -u -r1.154 -r1.155 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.154 src/include/unistd.h:1.155 --- src/include/unistd.h:1.154 Sun Sep 15 23:41:41 2019 +++ src/include/unistd.h Tue Mar 31 16:49:06 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: unistd.h,v 1.154 2019/09/15 23:41:41 christos Exp $ */ +/* $NetBSD: unistd.h,v 1.155 2020/03/31 16:49:06 kamil Exp $ */ /*- * Copyright (c) 1998, 1999, 2008 The NetBSD Foundation, Inc. @@ -235,6 +235,8 @@ int nice(int); __aconst char *crypt(const char *, const char *); int encrypt(char *, int); char *getpass(const char *); +#endif +#if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE) pid_t getsid(pid_t); #endif