X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fnet%2Fif.h;h=e862c7c75532aeacc29072706a67afd93c659d59;hb=d200bd727beab4f687e4891e2febc16b4ab97020;hp=2ae5f89ef0d3d82ff1716e68bef032fa94b32b52;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/include/net/if.h b/include/net/if.h index 2ae5f89e..e862c7c7 100644 --- a/include/net/if.h +++ b/include/net/if.h @@ -1,6 +1,10 @@ #ifndef _NET_IF_H #define _NET_IF_H +#ifdef __cplusplus +extern "C" { +#endif + #define IF_NAMESIZE 16 struct if_nameindex @@ -17,7 +21,7 @@ void if_freenameindex (struct if_nameindex *); -#ifdef _GNU_SOURCE +#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) #include @@ -117,6 +121,8 @@ struct ifconf { #endif - +#ifdef __cplusplus +} +#endif #endif