using #ifdef HAVE_SYS_TYPES_H around some of the includes making problems, but still uncompilable on win32!!!

svn path=/trunk/; revision=11921
This commit is contained in:
Ulf Lamping 2004-09-07 08:42:02 +00:00
parent 870cb0e20a
commit e09ed18320
2 changed files with 23 additions and 8 deletions

View File

@ -26,10 +26,19 @@
# include "config.h"
#endif
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifndef WIN32
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#include <stdio.h>
#include <gtk/gtk.h>
#include "simple_dialog.h" /* Both is used for error handling */

View File

@ -22,10 +22,16 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include <epan/dissectors/packet-sctp.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <epan/dissectors/packet-sctp.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifndef WIN32
#include <netinet/in.h>
#endif
#define SCTP_DATA_CHUNK_ID 0
#define SCTP_INIT_CHUNK_ID 1