win32 compat

This commit is contained in:
Lev Walkin 2004-08-11 05:58:52 +00:00
parent 3d731dc450
commit 2c96273699
2 changed files with 6 additions and 2 deletions

View File

@ -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>
/*

View File

@ -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.