Skip to content

Commit

Permalink
liburing.h: get rid of _GNU_SOURCE and XOPEN_SOURCE defines
Browse files Browse the repository at this point in the history
These really should be set at compile time, if needed, rather than be
hardcoded in the liburing.h main header.

Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
axboe committed Jan 17, 2024
1 parent 0de6020 commit c427ed6
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/include/liburing.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@
#ifndef LIB_URING_H
#define LIB_URING_H

#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 500 /* Required for glibc to expose sigset_t */
#endif

#ifndef _GNU_SOURCE
#define _GNU_SOURCE /* Required for musl to expose cpu_set_t */
#endif

#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/uio.h>
Expand Down

0 comments on commit c427ed6

Please sign in to comment.