Skip to content

Commit c83f8b9

Browse files
committed
unix: move net/if.h include
This commit moves the net/if.h include into src/getaddrinfo.c to prevent AIX compilation errors. With these symbols exposed publicly, Node.js compilation failed on AIX by exposing Free(), which conflicts with another API. Refs: nodejs/node#16835 Refs: libuv#1445 PR-URL: libuv#1622 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
1 parent 921b030 commit c83f8b9

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

include/uv-unix.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#include <netinet/tcp.h>
3333
#include <arpa/inet.h>
3434
#include <netdb.h>
35-
#include <net/if.h>
3635

3736
#include <termios.h>
3837
#include <pwd.h>

src/unix/getaddrinfo.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include <stddef.h> /* NULL */
3333
#include <stdlib.h>
3434
#include <string.h>
35+
#include <net/if.h> /* if_indextoname() */
3536

3637
/* EAI_* constants. */
3738
#include <netdb.h>

0 commit comments

Comments
 (0)