summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2013-04-11 03:09:16 +0000
committerguenther <guenther@openbsd.org>2013-04-11 03:09:16 +0000
commit76e45efd19bc4c64a19c29ba86a304ba15df8c1b (patch)
tree88e49ecaabad3c16265414554c4acdb79012386f
parentAdd 'restrict' per POSIX, per prodding by tedu@. (Might permit more warnings?) (diff)
downloadwireguard-openbsd-76e45efd19bc4c64a19c29ba86a304ba15df8c1b.tar.xz
wireguard-openbsd-76e45efd19bc4c64a19c29ba86a304ba15df8c1b.zip
getpgid() and getsid() were rolled into POSIX in 2008
ok millert@
-rw-r--r--include/unistd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/unistd.h b/include/unistd.h
index 53026a7b9ea..b9063071703 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: unistd.h,v 1.75 2013/03/01 21:19:41 guenther Exp $ */
+/* $OpenBSD: unistd.h,v 1.76 2013/04/11 03:09:16 guenther Exp $ */
/* $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $ */
/*-
@@ -430,7 +430,7 @@ int usleep(useconds_t);
pid_t vfork(void);
#endif
-#if __XPG_VISIBLE >= 420
+#if __POSIX_VISIBLE >= 200809 || __XPG_VISIBLE >= 420
pid_t getpgid(pid_t);
pid_t getsid(pid_t);
#endif