Skip to content

Commit 90a5814

Browse files
Merge pull request #1555 from bratpiorka/rrudnick_fix_gnu_warn
fix _GNU_SOURCE redefined warn
2 parents 6c97f3d + b1aa197 commit 90a5814

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/proxy_lib/proxy_lib.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2024-2025 Intel Corporation
2+
* Copyright (C) 2024-2026 Intel Corporation
33
*
44
* Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
55
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
@@ -28,9 +28,13 @@
2828
*/
2929

3030
#ifndef _WIN32
31+
#ifndef _GNU_SOURCE
3132
#define _GNU_SOURCE // for RTLD_NEXT
3233
#include <dlfcn.h>
3334
#undef _GNU_SOURCE
35+
#else /* _GNU_SOURCE */
36+
#include <dlfcn.h>
37+
#endif /* _GNU_SOURCE */
3438
#endif /* _WIN32 */
3539

3640
#if (defined PROXY_LIB_USES_JEMALLOC_POOL)

0 commit comments

Comments
 (0)