mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
Fix linux compilation (pipe2 needs _GNU_SOURCE)
This commit is contained in:
parent
74b782645a
commit
d850ec8574
@ -3,6 +3,8 @@
|
|||||||
* Copyright (c) 2007-2015, The Tor Project, Inc. */
|
* Copyright (c) 2007-2015, The Tor Project, Inc. */
|
||||||
/* See LICENSE for licensing information */
|
/* See LICENSE for licensing information */
|
||||||
|
|
||||||
|
#define _GNU_SOURCE
|
||||||
|
|
||||||
#include "orconfig.h"
|
#include "orconfig.h"
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -15,12 +17,12 @@
|
|||||||
#ifdef HAVE_SYS_EVENTFD_H
|
#ifdef HAVE_SYS_EVENTFD_H
|
||||||
#include <sys/eventfd.h>
|
#include <sys/eventfd.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_UNISTD_H
|
|
||||||
#include <unistd.h>
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_FCNTL_H
|
#ifdef HAVE_FCNTL_H
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef HAVE_UNISTD_H
|
||||||
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/** Return a newly allocated, ready-for-use mutex. */
|
/** Return a newly allocated, ready-for-use mutex. */
|
||||||
tor_mutex_t *
|
tor_mutex_t *
|
||||||
|
Loading…
Reference in New Issue
Block a user