mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-13 13:40:56 +00:00
Ok, getifaddrs() is not POSIX compliant. Fix #3984 as suggested by Vincent Cojot
This commit is contained in:
parent
fd4cf3b783
commit
48b03a035b
2 changed files with 3 additions and 8 deletions
|
@ -25,6 +25,9 @@
|
||||||
#define uint32_t UINT32
|
#define uint32_t UINT32
|
||||||
#else
|
#else
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#ifdef __sun
|
||||||
|
#define _POSIX_C_SOURCE 199309L
|
||||||
|
#endif
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
|
@ -23,14 +23,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
#ifndef __Q_SHARED_H
|
#ifndef __Q_SHARED_H
|
||||||
#define __Q_SHARED_H
|
#define __Q_SHARED_H
|
||||||
|
|
||||||
#ifndef _BSD_SOURCE
|
|
||||||
#define _BSD_SOURCE
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef _POSIX_C_SOURCE
|
|
||||||
#define _POSIX_C_SOURCE 200112L
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// q_shared.h -- included first by ALL program modules.
|
// q_shared.h -- included first by ALL program modules.
|
||||||
// A user mod should never modify this file
|
// A user mod should never modify this file
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue