diff --git a/skeletons/constr_CHOICE.c b/skeletons/constr_CHOICE.c index d1beff42edae1917aff3ef64c9a448f5be3d8830..7870a4cfc563b6e6f2b602b48bca61a2c06b0261 100644 --- a/skeletons/constr_CHOICE.c +++ b/skeletons/constr_CHOICE.c @@ -3,7 +3,6 @@ * Redistribution and modifications are permitted subject to BSD license. */ #include <constr_CHOICE.h> -#include <netinet/in.h> /* for ntohl */ #include <assert.h> /* diff --git a/skeletons/constr_SET.c b/skeletons/constr_SET.c index a01b804487bf2fad2b8b29803271182e33357e3f..2fd0ac9befe423573e231d7686aa33e085fad08d 100644 --- a/skeletons/constr_SET.c +++ b/skeletons/constr_SET.c @@ -3,9 +3,14 @@ * Redistribution and modifications are permitted subject to BSD license. */ #include <constr_SET.h> -#include <netinet/in.h> /* for ntohl() */ #include <assert.h> /* for assert() */ +#ifndef WIN32 +#include <netinet/in.h> /* for ntohl() */ +#else +#include <winsock2.h> /* for ntohl() */ +#endif + /* * Number of bytes left for this structure. * (ctx->left) indicates the number of bytes _transferred_ for the structure.