Skip to content

Commit

Permalink
ensure _GNU_SOURCE is defined instead of defining it unconditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Schulhof committed Mar 13, 2020
1 parent ba539ef commit 2d6be5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/large_pages/node_large_page.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
#include "uv.h"

#if defined(__linux__)
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <link.h>
#endif
#include <sys/types.h>
Expand Down

0 comments on commit 2d6be5e

Please sign in to comment.