Skip to content

Commit

Permalink
define _GNU_SOURCE unconditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
N-R-K committed Jul 1, 2023
1 parent be5bf3e commit 72f76e6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/nnn.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#define _GNU_SOURCE
#define _FILE_OFFSET_BITS 64 /* Support large files on 32-bit glibc */
#define _XOPEN_SOURCE_EXTENDED
#undef _XOPEN_SOURCE
Expand All @@ -38,9 +39,6 @@

#if defined(__linux__) || defined(MINGW) || defined(__MINGW32__) \
|| defined(__MINGW64__) || defined(__CYGWIN__)
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#if defined(__linux__)
#include <sys/inotify.h>
#define LINUX_INOTIFY
Expand Down

0 comments on commit 72f76e6

Please sign in to comment.