Fix _GNU_SOURCE import so that they only affect dlfcn.h
* permissions and limitations under the License.
*/
-#define _GNU_SOURCE
+#include <string.h>
+/* Define _GNU_SOURCE to get RTLD_NEXT definition from dlfcn.h */
+#define _GNU_SOURCE
#include <dlfcn.h>
-#include <string.h>
/* Overrides will work only if RTLD_NEXT is defined */
#ifdef RTLD_NEXT
