summaryrefslogtreecommitdiff
path: root/src/base
diff options
context:
space:
mode:
Diffstat (limited to 'src/base')
-rw-r--r--src/base/path.h.in2
-rw-r--r--src/base/server.h10
2 files changed, 10 insertions, 2 deletions
diff --git a/src/base/path.h.in b/src/base/path.h.in
index d2b75d4..fff9fac 100644
--- a/src/base/path.h.in
+++ b/src/base/path.h.in
@@ -15,7 +15,7 @@
#ifndef __WIN32__
#define PATH_MODULES "@LIB_INSTALL_DIR@" "/" APPNAME "-" "@TUXANCI_VERSION@" "/"
#else
- #define PATH_MODULES PREFIX "/bin/"
+ #define PATH_MODULES PREFIX
#endif
#define PATH_IMAGE PATH_DIR "images/"
#define FONT_FILE "@CMAKE_FONT@"
diff --git a/src/base/server.h b/src/base/server.h
index 63d1c09..f843fea 100644
--- a/src/base/server.h
+++ b/src/base/server.h
@@ -9,8 +9,13 @@
#include "tux.h"
#include "myTimer.h"
#include "protect.h"
+#ifdef SUPPORT_UDP
#include "udp.h"
+#endif
+
+#ifdef SUPPORT_TCP
#include "tcp.h"
+#endif
#include "buffer.h"
#ifndef PUBLIC_SERVER
@@ -31,9 +36,12 @@
typedef struct client_struct
{
int type;
+#ifdef SUPPORT_UDP
sock_udp_t *socket_udp;
+#endif
+#ifdef SUPPORT_TCP
sock_tcp_t *socket_tcp;
-
+#endif
buffer_t *recvBuffer;
buffer_t *sendBuffer;