... | ... |
@@ -19,7 +19,7 @@ |
19 | 19 |
ACLOCAL_AMFLAGS=-I m4 |
20 | 20 |
|
21 | 21 |
SUBDIRS = libltdl libclamav clamscan clamd clamdscan freshclam sigtool clamconf database docs etc clamav-milter test unit_tests clamdtop clambc |
22 |
-EXTRA_DIST = FAQ examples BUGS shared libclamav.pc.in libclamunrar_iface/Makefile.am libclamunrar_iface/Makefile.in UPGRADE COPYING.bzip2 COPYING.lzma COPYING.unrar COPYING.LGPL COPYING.file COPYING.zlib COPYING.getopt COPYING.regex COPYING.sha256 |
|
22 |
+EXTRA_DIST = FAQ examples BUGS shared libclamav.pc.in libclamunrar_iface/Makefile.am libclamunrar_iface/Makefile.in UPGRADE COPYING.bzip2 COPYING.lzma COPYING.unrar COPYING.LGPL COPYING.file COPYING.zlib COPYING.getopt COPYING.regex COPYING.sha256 platform.h.in |
|
23 | 23 |
|
24 | 24 |
bin_SCRIPTS=clamav-config |
25 | 25 |
|
... | ... |
@@ -58,7 +58,7 @@ subdir = . |
58 | 58 |
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ |
59 | 59 |
$(srcdir)/Makefile.in $(srcdir)/clamav-config.h.in \ |
60 | 60 |
$(srcdir)/clamav-config.in $(srcdir)/libclamav.pc.in \ |
61 |
- $(top_srcdir)/configure \ |
|
61 |
+ $(srcdir)/platform.h.in $(top_srcdir)/configure \ |
|
62 | 62 |
$(top_srcdir)/docs/man/clamav-milter.8.in \ |
63 | 63 |
$(top_srcdir)/docs/man/clamconf.1.in \ |
64 | 64 |
$(top_srcdir)/docs/man/clamd.8.in \ |
... | ... |
@@ -88,7 +88,7 @@ am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ |
88 | 88 |
configure.lineno config.status.lineno |
89 | 89 |
mkinstalldirs = $(install_sh) -d |
90 | 90 |
CONFIG_HEADER = clamav-config.h |
91 |
-CONFIG_CLEAN_FILES = clamav-config libclamav.pc \ |
|
91 |
+CONFIG_CLEAN_FILES = clamav-config libclamav.pc platform.h \ |
|
92 | 92 |
docs/man/clamav-milter.8 docs/man/clamconf.1 docs/man/clamd.8 \ |
93 | 93 |
docs/man/clamd.conf.5 docs/man/clamdscan.1 docs/man/clamscan.1 \ |
94 | 94 |
docs/man/freshclam.1 docs/man/freshclam.conf.5 \ |
... | ... |
@@ -335,7 +335,7 @@ top_builddir = @top_builddir@ |
335 | 335 |
top_srcdir = @top_srcdir@ |
336 | 336 |
ACLOCAL_AMFLAGS = -I m4 |
337 | 337 |
SUBDIRS = libltdl libclamav clamscan clamd clamdscan freshclam sigtool clamconf database docs etc clamav-milter test unit_tests clamdtop clambc |
338 |
-EXTRA_DIST = FAQ examples BUGS shared libclamav.pc.in libclamunrar_iface/Makefile.am libclamunrar_iface/Makefile.in UPGRADE COPYING.bzip2 COPYING.lzma COPYING.unrar COPYING.LGPL COPYING.file COPYING.zlib COPYING.getopt COPYING.regex COPYING.sha256 |
|
338 |
+EXTRA_DIST = FAQ examples BUGS shared libclamav.pc.in libclamunrar_iface/Makefile.am libclamunrar_iface/Makefile.in UPGRADE COPYING.bzip2 COPYING.lzma COPYING.unrar COPYING.LGPL COPYING.file COPYING.zlib COPYING.getopt COPYING.regex COPYING.sha256 platform.h.in |
|
339 | 339 |
bin_SCRIPTS = clamav-config |
340 | 340 |
pkgconfigdir = $(libdir)/pkgconfig |
341 | 341 |
pkgconfig_DATA = libclamav.pc |
... | ... |
@@ -444,6 +444,8 @@ clamav-config: $(top_builddir)/config.status $(srcdir)/clamav-config.in |
444 | 444 |
cd $(top_builddir) && $(SHELL) ./config.status $@ |
445 | 445 |
libclamav.pc: $(top_builddir)/config.status $(srcdir)/libclamav.pc.in |
446 | 446 |
cd $(top_builddir) && $(SHELL) ./config.status $@ |
447 |
+platform.h: $(top_builddir)/config.status $(srcdir)/platform.h.in |
|
448 |
+ cd $(top_builddir) && $(SHELL) ./config.status $@ |
|
447 | 449 |
docs/man/clamav-milter.8: $(top_builddir)/config.status $(top_srcdir)/docs/man/clamav-milter.8.in |
448 | 450 |
cd $(top_builddir) && $(SHELL) ./config.status $@ |
449 | 451 |
docs/man/clamconf.1: $(top_builddir)/config.status $(top_srcdir)/docs/man/clamconf.1.in |
... | ... |
@@ -19755,7 +19755,7 @@ else |
19755 | 19755 |
fi |
19756 | 19756 |
|
19757 | 19757 |
|
19758 |
-ac_config_files="$ac_config_files libclamav/Makefile clamscan/Makefile database/Makefile docs/Makefile clamd/Makefile clamdscan/Makefile clamav-milter/Makefile freshclam/Makefile sigtool/Makefile clamconf/Makefile etc/Makefile test/Makefile unit_tests/Makefile clamdtop/Makefile clambc/Makefile Makefile clamav-config libclamav.pc docs/man/clamav-milter.8 docs/man/clamconf.1 docs/man/clamd.8 docs/man/clamd.conf.5 docs/man/clamdscan.1 docs/man/clamscan.1 docs/man/freshclam.1 docs/man/freshclam.conf.5 docs/man/sigtool.1 docs/man/clamdtop.1" |
|
19758 |
+ac_config_files="$ac_config_files libclamav/Makefile clamscan/Makefile database/Makefile docs/Makefile clamd/Makefile clamdscan/Makefile clamav-milter/Makefile freshclam/Makefile sigtool/Makefile clamconf/Makefile etc/Makefile test/Makefile unit_tests/Makefile clamdtop/Makefile clambc/Makefile Makefile clamav-config libclamav.pc platform.h docs/man/clamav-milter.8 docs/man/clamconf.1 docs/man/clamd.8 docs/man/clamd.conf.5 docs/man/clamdscan.1 docs/man/clamscan.1 docs/man/freshclam.1 docs/man/freshclam.conf.5 docs/man/sigtool.1 docs/man/clamdtop.1" |
|
19759 | 19759 |
|
19760 | 19760 |
cat >confcache <<\_ACEOF |
19761 | 19761 |
# This file is a shell script that caches the results of configure |
... | ... |
@@ -20807,6 +20807,7 @@ do |
20807 | 20807 |
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
20808 | 20808 |
"clamav-config") CONFIG_FILES="$CONFIG_FILES clamav-config" ;; |
20809 | 20809 |
"libclamav.pc") CONFIG_FILES="$CONFIG_FILES libclamav.pc" ;; |
20810 |
+ "platform.h") CONFIG_FILES="$CONFIG_FILES platform.h" ;; |
|
20810 | 20811 |
"docs/man/clamav-milter.8") CONFIG_FILES="$CONFIG_FILES docs/man/clamav-milter.8" ;; |
20811 | 20812 |
"docs/man/clamconf.1") CONFIG_FILES="$CONFIG_FILES docs/man/clamconf.1" ;; |
20812 | 20813 |
"docs/man/clamd.8") CONFIG_FILES="$CONFIG_FILES docs/man/clamd.8" ;; |
1606 | 1607 |
deleted file mode 100644 |
... | ... |
@@ -1,36 +0,0 @@ |
1 |
-#ifndef _WIN32 |
|
2 |
-#define closesocket(s) close(s) |
|
3 |
-#endif |
|
4 |
- |
|
5 |
-#ifndef O_BINARY |
|
6 |
-#define O_BINARY 0 |
|
7 |
-#endif |
|
8 |
- |
|
9 |
-#ifndef FALSE |
|
10 |
-#define FALSE (0) |
|
11 |
-#endif |
|
12 |
-#ifndef TRUE |
|
13 |
-#define TRUE (1) |
|
14 |
-#endif |
|
15 |
- |
|
16 |
-#ifndef MIN |
|
17 |
-#define MIN(a, b) (((a) < (b)) ? (a) : (b)) |
|
18 |
-#endif |
|
19 |
-#ifndef MAX |
|
20 |
-#define MAX(a,b) (((a) > (b)) ? (a) : (b)) |
|
21 |
-#endif |
|
22 |
- |
|
23 |
-#ifndef HAVE_IN_PORT_T |
|
24 |
-typedef unsigned short in_port_t; |
|
25 |
-#endif |
|
26 |
- |
|
27 |
-#ifndef HAVE_IN_ADDR_T |
|
28 |
-typedef unsigned int in_addr_t; |
|
29 |
-#endif |
|
30 |
- |
|
31 |
-#ifdef _WIN32 |
|
32 |
-#define PATHSEP "\\" |
|
33 |
-#else |
|
34 |
-#define PATHSEP "/" |
|
35 |
-#endif |
|
36 |
- |
37 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,36 @@ |
0 |
+#ifndef _WIN32 |
|
1 |
+#define closesocket(s) close(s) |
|
2 |
+#endif |
|
3 |
+ |
|
4 |
+#ifndef O_BINARY |
|
5 |
+#define O_BINARY 0 |
|
6 |
+#endif |
|
7 |
+ |
|
8 |
+#ifndef FALSE |
|
9 |
+#define FALSE (0) |
|
10 |
+#endif |
|
11 |
+#ifndef TRUE |
|
12 |
+#define TRUE (1) |
|
13 |
+#endif |
|
14 |
+ |
|
15 |
+#ifndef MIN |
|
16 |
+#define MIN(a, b) (((a) < (b)) ? (a) : (b)) |
|
17 |
+#endif |
|
18 |
+#ifndef MAX |
|
19 |
+#define MAX(a,b) (((a) > (b)) ? (a) : (b)) |
|
20 |
+#endif |
|
21 |
+ |
|
22 |
+#ifndef HAVE_IN_PORT_T |
|
23 |
+typedef unsigned short in_port_t; |
|
24 |
+#endif |
|
25 |
+ |
|
26 |
+#ifndef HAVE_IN_ADDR_T |
|
27 |
+typedef unsigned int in_addr_t; |
|
28 |
+#endif |
|
29 |
+ |
|
30 |
+#ifdef _WIN32 |
|
31 |
+#define PATHSEP "\\" |
|
32 |
+#else |
|
33 |
+#define PATHSEP "/" |
|
34 |
+#endif |
|
35 |
+ |