mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 03:50:57 +01:00
fixed glibc deprecated _BSD_SOURCE
This commit is contained in:
@@ -19,8 +19,7 @@
|
|||||||
You can contact me by mail: <tom AT vondein DOT org>.
|
You can contact me by mail: <tom AT vondein DOT org>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _XOPEN_SOURCE /* strptime, linux glibc*/
|
/* #define _XOPEN_SOURCE strptime, linux glibc*/
|
||||||
#define _BSD_SOURCE
|
|
||||||
|
|
||||||
#include "mgmt.h"
|
#include "mgmt.h"
|
||||||
|
|
||||||
|
|||||||
@@ -23,8 +23,10 @@
|
|||||||
#ifndef _HAVE_PCP_H
|
#ifndef _HAVE_PCP_H
|
||||||
#define _HAVE_PCP_H
|
#define _HAVE_PCP_H
|
||||||
|
|
||||||
#ifndef _BSD_SOURCE
|
#if defined __linux__ || defined __GNU__ || defined __GLIBC__
|
||||||
#define _BSD_SOURCE
|
#define _DEFAULT_SOURCE 1
|
||||||
|
#else
|
||||||
|
#define _BSD_SOURCE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|||||||
@@ -23,10 +23,6 @@
|
|||||||
#ifndef _HAVE_PCP_Z85
|
#ifndef _HAVE_PCP_Z85
|
||||||
#define _HAVE_PCP_Z85
|
#define _HAVE_PCP_Z85
|
||||||
|
|
||||||
#ifndef _BSD_SOURCE
|
|
||||||
#define _BSD_SOURCE
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user