mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 12:00:56 +01:00
fixed glibc deprecated _BSD_SOURCE
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user