diff options
-rw-r--r-- | source4/lib/util/config.mk | 6 | ||||
-rw-r--r-- | source4/smbd/config.mk | 6 | ||||
-rw-r--r-- | source4/smbd/pidfile.c (renamed from source4/lib/util/pidfile.c) | 6 | ||||
-rw-r--r-- | source4/smbd/server.c | 2 |
4 files changed, 8 insertions, 12 deletions
diff --git a/source4/lib/util/config.mk b/source4/lib/util/config.mk index 5e49eb839a..5d3e2cc4ca 100644 --- a/source4/lib/util/config.mk +++ b/source4/lib/util/config.mk @@ -28,13 +28,9 @@ OBJ_FILES = xfile.o \ idtree.o \ module.o PUBLIC_DEPENDENCIES = \ - LIBCRYPTO LIBTALLOC \ + LIBTALLOC LIBCRYPTO \ SOCKET_WRAPPER EXT_NSL -[SUBSYSTEM::PIDFILE] -PRIVATE_PROTO_HEADER = pidfile.h -OBJ_FILES = pidfile.o - [SUBSYSTEM::UNIX_PRIVS] PRIVATE_PROTO_HEADER = unix_privs.h OBJ_FILES = unix_privs.o diff --git a/source4/smbd/config.mk b/source4/smbd/config.mk index 918288f0fe..061893d5a1 100644 --- a/source4/smbd/config.mk +++ b/source4/smbd/config.mk @@ -23,6 +23,10 @@ PUBLIC_DEPENDENCIES = \ # End SUBSYSTEM SERVER ####################### +[SUBSYSTEM::PIDFILE] +OBJ_FILES = pidfile.o +PUBLIC_PROTO_HEADER = pidfile.h + ################################# # Start BINARY smbd [BINARY::smbd] @@ -35,8 +39,8 @@ PRIVATE_DEPENDENCIES = \ service \ LIBSAMBA-CONFIG \ LIBSAMBA-UTIL \ - PIDFILE \ POPT_SAMBA \ + PIDFILE \ LIBPOPT \ gensec \ registry \ diff --git a/source4/lib/util/pidfile.c b/source4/smbd/pidfile.c index dc9ecafae9..493de66b44 100644 --- a/source4/lib/util/pidfile.c +++ b/source4/smbd/pidfile.c @@ -23,10 +23,6 @@ #include "includes.h" #include "system/filesys.h" -#ifndef O_NONBLOCK -#define O_NONBLOCK -#endif - /** * @file * @brief Pid file handling @@ -36,7 +32,7 @@ * return the pid in a pidfile. return 0 if the process (or pidfile) * does not exist */ -_PUBLIC_ pid_t pidfile_pid(const char *name) +pid_t pidfile_pid(const char *name) { int fd; char pidstr[20]; diff --git a/source4/smbd/server.c b/source4/smbd/server.c index cf0efc6522..2239f33d17 100644 --- a/source4/smbd/server.c +++ b/source4/smbd/server.c @@ -38,7 +38,7 @@ #include "smbd/process_model.h" #include "smbd/service.h" #include "passdb/secrets.h" -#include "lib/util/pidfile.h" +#include "smbd/pidfile.h" /* recursively delete a directory tree |