From ab8f6a6e42ff893041f7545a23e6d6a0edde07fb Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 10 Sep 2014 12:27:33 -0400 Subject: fix places where _BSD_SOURCE failed to yield a superset of _XOPEN_SOURCE the vast majority of these failures seem to have been oversights at the time _BSD_SOURCE was added, or perhaps shortly afterward. the one which may have had some reason behind it is omission of setpgrp from the _BSD_SOURCE feature profile, since the standard setpgrp interface conflicts with a legacy (pre-POSIX) BSD interface by the same name. however, such omission is not aligned with our general policy in this area (for example, handling of similar _GNU_SOURCE cases) and should not be preserved. --- include/unistd.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'include/unistd.h') diff --git a/include/unistd.h b/include/unistd.h index ac6055a5..0fe75d52 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -140,9 +140,6 @@ int lockf(int, int, off_t); long gethostid(void); int nice(int); void sync(void); -#endif - -#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) pid_t setpgrp(void); char *crypt(const char *, const char *); void encrypt(char *, int); -- cgit v1.2.1