/*
* This file is part of DisOrder.
- * Copyright (C) 2004, 2005, 2007, 2008 Richard Kettlewell
+ * Copyright (C) 2004, 2005, 2007, 2008, 2013 Richard Kettlewell
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
#ifndef COMMON_H
#define COMMON_H
-#include <config.h>
+#if HAVE_CONFIG_H
+# include <config.h>
+#endif
+# define SOCKET int
+# define INVALID_SOCKET (-1)
+# define declspec(x)
+# define socket_error() (errno)
+# define system_error() (errno)
#if HAVE_INTTYPES_H
# include <inttypes.h>
#endif
# endif
#endif
+#if !HAVE_CLOSESOCKET
+# define closesocket close
+#endif
+
#endif /* COMMENT_H */
/*