Skip to content

Commit 2a175eb

Browse files
committed
socket: properly check glibc version
1 parent 5f52ae3 commit 2a175eb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

socket_info.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,13 @@
6161

6262
#ifdef __OS_linux
6363
#include <features.h> /* for GLIBC version testing */
64-
#if defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 4)
64+
#if defined(__GLIBC_PREREQ)
65+
#if __GLIBC_PREREQ(2, 4)
6566
#include <ifaddrs.h>
6667
#define HAVE_IFADDRS
6768
#endif
6869
#endif
70+
#endif
6971

7072
#define MAX_PROC_BUFFER 256
7173

0 commit comments

Comments
 (0)