the _BSD_SOURCE macro was deprecated with glibc 2.12

This commit is contained in:
Enno Rehling 2016-11-26 16:54:19 +01:00
parent 43b8ff1ea8
commit 6079293fea
1 changed files with 1 additions and 6 deletions

View File

@ -28,12 +28,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define _XOPEN_SOURCE 700
#endif
// enable bsd string extensions, prior to glibc 2.12:
#ifndef _BSD_SOURCE
#define _BSD_SOURCE
#endif
// enable bsd string extensions, since glibc 2.12:
// enable bsd string extensions, since glibc 2.12 (_BSD_SOURCE is dead):
#ifndef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L
#endif