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