diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2017-10-28 21:33:24 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2017-10-28 21:33:24 +0100 |
commit | c5db348c5e29e93e51389fa0079f829967c5da82 (patch) | |
tree | 0b876cbf4e1ae8dac81c63256ee233376940e2c8 /src/OS | |
parent | 1e0f06b3cfeb3c2453323453555d827c81456e1e (diff) | |
parent | cd328be98eb5bdda73316eaf95d9d6a617c7df7d (diff) |
Merge branch 'master' into 4.next
Diffstat (limited to 'src/OS')
-rw-r--r-- | src/OS/Makefile-Base | 6 | ||||
-rw-r--r-- | src/OS/os.c-Linux | 2 | ||||
-rw-r--r-- | src/OS/os.h-FreeBSD | 4 | ||||
-rw-r--r-- | src/OS/os.h-Linux | 3 | ||||
-rw-r--r-- | src/OS/os.h-OpenBSD | 28 |
5 files changed, 40 insertions, 3 deletions
diff --git a/src/OS/Makefile-Base b/src/OS/Makefile-Base index 67ac082ba..d64ed549f 100644 --- a/src/OS/Makefile-Base +++ b/src/OS/Makefile-Base @@ -5,7 +5,7 @@ # optional, Local/* files at the front of this file, to create Makefile in the # build directory. # -# Copyright (c) The Exim Maintainers 2016 +# Copyright (c) The Exim Maintainers 2017 SHELL = $(MAKE_SHELL) SCRIPTS = ../scripts @@ -135,6 +135,7 @@ OBJ_MACRO = macro_predef.o \ macro-manualroute.o macro-queryprogram.o macro-redirect.o \ macro-auth-spa.o macro-cram_md5.o macro-cyrus_sasl.o macro-dovecot.o macro-gsasl_exim.o \ macro-heimdal_gssapi.o macro-plaintext.o macro-spa.o macro-tls.o\ + macro-dkim.o $(OBJ_MACRO): $(MACRO_HSRC) @@ -222,6 +223,9 @@ macro-spa.o : auths/spa.c macro-tls.o: auths/tls.c @echo "$(CC) -DMACRO_PREDEF auths/tls.c" $(FE)$(CC) -c $(CFLAGS) -DMACRO_PREDEF $(INCLUDE) -o $@ auths/tls.c +macro-dkim.o: dkim.c + @echo "$(CC) -DMACRO_PREDEF dkim.c" + $(FE)$(CC) -c $(CFLAGS) -DMACRO_PREDEF $(INCLUDE) -o $@ dkim.c macro_predef: $(OBJ_MACRO) @echo "$(LNCC) -o $@" diff --git a/src/OS/os.c-Linux b/src/OS/os.c-Linux index dd65c8b39..a10bc7d25 100644 --- a/src/OS/os.c-Linux +++ b/src/OS/os.c-Linux @@ -2,7 +2,7 @@ * Exim - an Internet mail transport agent * *************************************************/ -/* Copyright (c) University of Cambridge 1997 - 2016 */ +/* Copyright (c) University of Cambridge 1997 - 2017 */ /* See the file NOTICE for conditions of use and distribution. */ /* Linux-specific code. This is concatenated onto the generic diff --git a/src/OS/os.h-FreeBSD b/src/OS/os.h-FreeBSD index 3a06e766e..8b1af396a 100644 --- a/src/OS/os.h-FreeBSD +++ b/src/OS/os.h-FreeBSD @@ -1,4 +1,7 @@ /* Exim: OS-specific C header file for FreeBSD */ +/* Copyright (c) University of Cambridge 2017 */ +/* See the file NOTICE for conditions of use and distribution. */ + #include <sys/types.h> @@ -48,6 +51,7 @@ extern ssize_t os_sendfile(int, int, off_t *, size_t); /* TCP_FASTOPEN support. There does not seems to be a MSG_FASTOPEN defined yet... */ +#define EXIM_TFO_PROBE #include <netinet/tcp.h> /* for TCP_FASTOPEN */ #include <sys/socket.h> /* for MSG_FASTOPEN */ diff --git a/src/OS/os.h-Linux b/src/OS/os.h-Linux index f6d35772b..88c4d9117 100644 --- a/src/OS/os.h-Linux +++ b/src/OS/os.h-Linux @@ -1,4 +1,7 @@ /* Exim: OS-specific C header file for Linux */ +/* Copyright (c) University of Cambridge 2017 */ +/* See the file NOTICE for conditions of use and distribution. */ + /* Some old systems we've received bug-reports for have a <limits.h> which does not pull in <features.h>. Best to just pull it in now and have done diff --git a/src/OS/os.h-OpenBSD b/src/OS/os.h-OpenBSD index 5d55a967e..81ed4870b 100644 --- a/src/OS/os.h-OpenBSD +++ b/src/OS/os.h-OpenBSD @@ -1,4 +1,7 @@ /* Exim: OS-specific C header file for OpenBSD */ +/* Copyright (c) University of Cambridge 2017 */ +/* See the file NOTICE for conditions of use and distribution. */ + #define HAVE_BSD_GETLOADAVG #define HAVE_MMAP @@ -10,7 +13,7 @@ if the version released is past that point. */ #include <sys/param.h> #if OpenBSD >= 201405 -#define NOT_HAVE_ARC4RANDOM_STIR +# define NOT_HAVE_ARC4RANDOM_STIR #endif typedef struct flock flock_t; @@ -27,4 +30,27 @@ typedef struct __res_state *res_state; # define EPROTO 71 #endif +/* We need to force this; the automatic in buildconfig.c gets %ld */ +#ifdef OFF_T_FMT +# undef OFF_T_FMT +# undef LONGLONG_T +#endif +#define OFF_T_FMT "%lld" +#define LONGLONG_T long long int + +#ifdef PID_T_FMT +# undef PID_T_FMT +#endif +#define PID_T_FMT "%d" + +#ifdef INO_T_FMT +# undef INO_T_FMT +#endif +#define INO_T_FMT "%llu" + +#ifdef TIME_T_FMT +# undef TIME_T_FMT +#endif +#define TIME_T_FMT "%lld" + /* End */ |