summaryrefslogtreecommitdiffstats
path: root/eglib
diff options
context:
space:
mode:
Diffstat (limited to 'eglib')
-rw-r--r--eglib/gmain.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/eglib/gmain.h b/eglib/gmain.h
index d851f84f..bcf72dea 100644
--- a/eglib/gmain.h
+++ b/eglib/gmain.h
@@ -4,6 +4,7 @@
#include <stdlib.h>
#include <sys/poll.h>
#include <sys/types.h>
+#include <netinet/in.h>
#include <inttypes.h>
typedef char gchar;
@@ -40,6 +41,11 @@ typedef ssize_t gssize;
#define SSIZE_MAX INT_MAX
#endif
+#define g_ntohs(val) ntohs(val)
+#define g_ntohl(val) ntohl(val)
+#define g_htons(val) htons(val)
+#define g_htonl(val) htonl(val)
+
typedef pid_t GPid;
#define MIN_TIMEOUT(a, b) (((a) < (b)) ? (a) : (b))