From d6464c87bdd36a1c491a47fcc7ced214b751d955 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sat, 24 Aug 2013 21:59:19 +0200 Subject: [PATCH] build: remove _GNU_SOURCE macro definition Compile libuv without -D_GNU_SOURCE, remove mention from the README. The only place where it's still used is in the test suite and only because test/test-fs.c uses struct stat directly. --- README.md | 4 ---- uv.gyp | 1 - 2 files changed, 5 deletions(-) diff --git a/README.md b/README.md index 48a862660..e4857106b 100644 --- a/README.md +++ b/README.md @@ -94,10 +94,6 @@ To build for android: Note for UNIX users: compile your project with `-D_LARGEFILE_SOURCE` and `-D_FILE_OFFSET_BITS=64`. GYP builds take care of that automatically. -Note for Linux users: compile your project with `-D_GNU_SOURCE` when you -include `uv.h`. GYP builds take care of that automatically. If you use -autotools, add a `AC_GNU_SOURCE` declaration to your `configure.ac`. - ## Supported Platforms Microsoft Windows operating systems since Windows XP SP2. It can be built diff --git a/uv.gyp b/uv.gyp index da254a1ab..3b2533c77 100644 --- a/uv.gyp +++ b/uv.gyp @@ -15,7 +15,6 @@ 'defines': [ '_LARGEFILE_SOURCE', '_FILE_OFFSET_BITS=64', - '_GNU_SOURCE', ], 'conditions': [ ['OS=="solaris"', {