From c5d07ce91a8ad51591154450442fa4376441fdfa Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 13 Oct 2015 23:25:18 -0700 Subject: [PATCH] binary-io, math, pthread, sys_socket, u64, unistd: port to strict C * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c: * lib/u64.c, lib/unistd.c: Append 'typedef int dummy;', to pacify compilers that are picky about empty translation units. --- ChangeLog | 8 ++++++++ lib/binary-io.c | 1 + lib/math.c | 1 + lib/pthread.c | 1 + lib/sys_socket.c | 1 + lib/u64.c | 1 + lib/unistd.c | 1 + 7 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index d0c3557c2f..39517086d8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2015-10-13 Paul Eggert + + binary-io, math, pthread, sys_socket, u64, unistd: port to strict C + * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c: + * lib/u64.c, lib/unistd.c: + Append 'typedef int dummy;', to pacify compilers that are picky + about empty translation units. + 2015-10-12 Pino Toscano accept4-tests: fix to avoid non portable flags diff --git a/lib/binary-io.c b/lib/binary-io.c index 8bbdb44d12..d828bcd015 100644 --- a/lib/binary-io.c +++ b/lib/binary-io.c @@ -1,3 +1,4 @@ #include #define BINARY_IO_INLINE _GL_EXTERN_INLINE #include "binary-io.h" +typedef int dummy; diff --git a/lib/math.c b/lib/math.c index ddb2ded530..ba2a6abd62 100644 --- a/lib/math.c +++ b/lib/math.c @@ -1,3 +1,4 @@ #include #define _GL_MATH_INLINE _GL_EXTERN_INLINE #include "math.h" +typedef int dummy; diff --git a/lib/pthread.c b/lib/pthread.c index a7de637686..188eb0a94c 100644 --- a/lib/pthread.c +++ b/lib/pthread.c @@ -1,3 +1,4 @@ #include #define _GL_PTHREAD_INLINE _GL_EXTERN_INLINE #include "pthread.h" +typedef int dummy; diff --git a/lib/sys_socket.c b/lib/sys_socket.c index 3f017f8fc6..3b261da039 100644 --- a/lib/sys_socket.c +++ b/lib/sys_socket.c @@ -1,3 +1,4 @@ #include #define _GL_SYS_SOCKET_INLINE _GL_EXTERN_INLINE #include "sys/socket.h" +typedef int dummy; diff --git a/lib/u64.c b/lib/u64.c index 04cf7a2994..1e3854ddcd 100644 --- a/lib/u64.c +++ b/lib/u64.c @@ -1,3 +1,4 @@ #include #define _GL_U64_INLINE _GL_EXTERN_INLINE #include "u64.h" +typedef int dummy; diff --git a/lib/unistd.c b/lib/unistd.c index 6c6a8e268c..72bad1c052 100644 --- a/lib/unistd.c +++ b/lib/unistd.c @@ -1,3 +1,4 @@ #include #define _GL_UNISTD_INLINE _GL_EXTERN_INLINE #include "unistd.h" +typedef int dummy; -- 2.39.5