fixed glibc deprecated _BSD_SOURCE

This commit is contained in:
TLINDEN
2014-12-19 20:31:55 +01:00
parent 5f13d5d810
commit 85db8c664c
3 changed files with 5 additions and 8 deletions

View File

@@ -19,8 +19,7 @@
You can contact me by mail: <tom AT vondein DOT org>.
*/
#define _XOPEN_SOURCE /* strptime, linux glibc*/
#define _BSD_SOURCE
/* #define _XOPEN_SOURCE strptime, linux glibc*/
#include "mgmt.h"

View File

@@ -23,8 +23,10 @@
#ifndef _HAVE_PCP_H
#define _HAVE_PCP_H
#ifndef _BSD_SOURCE
#define _BSD_SOURCE
#if defined __linux__ || defined __GNU__ || defined __GLIBC__
#define _DEFAULT_SOURCE 1
#else
#define _BSD_SOURCE 1
#endif
#include <unistd.h>

View File

@@ -23,10 +23,6 @@
#ifndef _HAVE_PCP_Z85
#define _HAVE_PCP_Z85
#ifndef _BSD_SOURCE
#define _BSD_SOURCE
#endif
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>