summaryrefslogtreecommitdiffstats
path: root/src/include/gpxe
diff options
context:
space:
mode:
authorMichael Brown2008-11-19 20:33:05 +0100
committerMichael Brown2008-11-19 20:33:05 +0100
commit0ebbbb95fa03622423154a3e56251dd58832654d (patch)
tree3bb6fa8df8158cf546a3fe42364cfd3d0b4ef831 /src/include/gpxe
parent[build] Explicitly link efilink against -liberty (diff)
downloadipxe-0ebbbb95fa03622423154a3e56251dd58832654d.tar.gz
ipxe-0ebbbb95fa03622423154a3e56251dd58832654d.tar.xz
ipxe-0ebbbb95fa03622423154a3e56251dd58832654d.zip
[x86_64] Fix assorted 64-bit compilation errors and warnings
Remove various 32-bit assumptions scattered throughout the codebase. The code is still not necessarily 64-bit clean, but will at least compile.
Diffstat (limited to 'src/include/gpxe')
-rw-r--r--src/include/gpxe/socket.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/include/gpxe/socket.h b/src/include/gpxe/socket.h
index 9c7afb871..582de4ef9 100644
--- a/src/include/gpxe/socket.h
+++ b/src/include/gpxe/socket.h
@@ -7,6 +7,8 @@
*
*/
+#include <stdint.h>
+
/**
* @defgroup commtypes Communication semantics
*
@@ -14,12 +16,14 @@
*/
/** Connection-based, reliable streams */
-#define SOCK_STREAM ( ( int ) TCP_SOCK_STREAM )
-extern char TCP_SOCK_STREAM[];
+extern int tcp_sock_stream;
+#define TCP_SOCK_STREAM 0x1
+#define SOCK_STREAM tcp_sock_stream
/** Connectionless, unreliable streams */
-#define SOCK_DGRAM ( ( int ) UDP_SOCK_DGRAM )
-extern char UDP_SOCK_DGRAM[];
+extern int udp_sock_dgram;
+#define UDP_SOCK_DGRAM 0x2
+#define SOCK_DGRAM udp_sock_dgram
/** @} */