Fix MINGW32 build (no capture)
authorvolpol <volpol@packet-gain.de>
Thu, 20 Aug 2020 09:40:05 +0000 (11:40 +0200)
committervolpol <volpol@packet-gain.de>
Wed, 9 Sep 2020 18:24:03 +0000 (20:24 +0200)
Makefile.win32
config.h

index dfcb00604ffc270e7f6c7edfb539e777e3bfd198..1d495b19950f07376813ddf20668a48aac05dda7 100644 (file)
@@ -2,7 +2,7 @@ CROSS=i686-w64-mingw32-
 CC=$(CROSS)gcc
 STRIP=$(CROSS)strip
 
-CFLAGS=-Iwin32/include -DUSE_CAPTURE
+CFLAGS=-Iwin32/include
 LDFLAGS=-Lwin32/lib -lcurldll -lz -lws2_32
 
 TARGET=hls.exe
index 219402a3c8b867ae381c1b81b9eb661e8a8932b0..11ccb4d2960f0cbd5c524470446a8720f7d142b4 100644 (file)
--- a/config.h
+++ b/config.h
@@ -1,4 +1,9 @@
 #define USE_TCP
-//#define USE_MEMFILE
-#define DEBUG
-//#define USE_TC7200_WORKAROUND
+#define USE_MEMFILE
+#define USE_CAPTURE
+
+#if defined (__WIN32__)
+       #define SIGNAL_CAPTURE (0)
+#else
+       #define SIGNAL_CAPTURE SIGUSR1
+#endif