chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove or indent #define GNU_SOURCE
[elogind.git]
/
src
/
libsystemd-daemon
/
sd-daemon.c
diff --git
a/src/libsystemd-daemon/sd-daemon.c
b/src/libsystemd-daemon/sd-daemon.c
index 80aadf7adfc7c6da21acb7d3bd64cb6f74b6e0cc..5b92e2e3dbc908535053cb5056b06998affe0e1d 100644
(file)
--- a/
src/libsystemd-daemon/sd-daemon.c
+++ b/
src/libsystemd-daemon/sd-daemon.c
@@
-25,7
+25,7
@@
***/
#ifndef _GNU_SOURCE
***/
#ifndef _GNU_SOURCE
-#define _GNU_SOURCE
+#
define _GNU_SOURCE
#endif
#include <sys/types.h>
#endif
#include <sys/types.h>
@@
-33,9
+33,9
@@
#include <sys/socket.h>
#include <sys/un.h>
#ifdef __BIONIC__
#include <sys/socket.h>
#include <sys/un.h>
#ifdef __BIONIC__
-#include <linux/fcntl.h>
+#
include <linux/fcntl.h>
#else
#else
-#include <sys/fcntl.h>
+#
include <sys/fcntl.h>
#endif
#include <netinet/in.h>
#include <stdlib.h>
#endif
#include <netinet/in.h>
#include <stdlib.h>
@@
-48,21
+48,21
@@
#include <limits.h>
#if defined(__linux__)
#include <limits.h>
#if defined(__linux__)
-#include <mqueue.h>
+#
include <mqueue.h>
#endif
#include "sd-daemon.h"
#if (__GNUC__ >= 4)
#endif
#include "sd-daemon.h"
#if (__GNUC__ >= 4)
-#ifdef SD_EXPORT_SYMBOLS
+#
ifdef SD_EXPORT_SYMBOLS
/* Export symbols */
/* Export symbols */
-#define _sd_export_ __attribute__ ((visibility("default")))
-#else
+#
define _sd_export_ __attribute__ ((visibility("default")))
+#
else
/* Don't export the symbols */
/* Don't export the symbols */
-#define _sd_export_ __attribute__ ((visibility("hidden")))
-#endif
+#
define _sd_export_ __attribute__ ((visibility("hidden")))
+#
endif
#else
#else
-#define _sd_export_
+#
define _sd_export_
#endif
_sd_export_ int sd_listen_fds(int unset_environment) {
#endif
_sd_export_ int sd_listen_fds(int unset_environment) {