mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 15:03:34 +00:00
check existence of IFNAMSIZ
IFNAMSIZ is defined in: - libc/sock/if.h - libc/sock/struct/ifreq.h we add a check in the latter to avoid a complaint when using the amalgamated header.
This commit is contained in:
parent
9a46c5afc4
commit
25fa6acc4d
1 changed files with 2 additions and 0 deletions
|
@ -5,7 +5,9 @@
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
#define IF_NAMESIZE 16
|
#define IF_NAMESIZE 16
|
||||||
|
#ifndef IFNAMSIZ
|
||||||
#define IFNAMSIZ IF_NAMESIZE
|
#define IFNAMSIZ IF_NAMESIZE
|
||||||
|
#endif
|
||||||
|
|
||||||
struct ifreq {
|
struct ifreq {
|
||||||
union {
|
union {
|
||||||
|
|
Loading…
Reference in a new issue