projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Include libgen.h to get prototype for basename in a POSIX conformant way. Fix for...
[rrdtool.git]
/
src
/
rrd_daemon.c
diff --git
a/src/rrd_daemon.c
b/src/rrd_daemon.c
index
c491d14
..
6445e55
100644
(file)
--- a/
src/rrd_daemon.c
+++ b/
src/rrd_daemon.c
@@
-75,19
+75,24
@@
#include "rrd_client.h"
#include <stdlib.h>
#include "rrd_client.h"
#include <stdlib.h>
+
+#ifndef WIN32
#include <stdint.h>
#include <stdint.h>
-#include <stdio.h>
#include <unistd.h>
#include <unistd.h>
-#include <string.h>
#include <strings.h>
#include <strings.h>
-#include <stdint.h>
#include <inttypes.h>
#include <inttypes.h>
+# include <sys/socket.h>
+
+#else
+
+#endif
+#include <stdio.h>
+#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
-#include <sys/socket.h>
#include <sys/un.h>
#include <netdb.h>
#include <poll.h>
#include <sys/un.h>
#include <netdb.h>
#include <poll.h>
@@
-1092,7
+1097,7
@@
static int handle_request_help (listen_socket_t *sock, /* {{{ */
"Usage: FLUSH <filename>\n"
"\n"
"Adds the given filename to the head of the update queue and returns\n"
"Usage: FLUSH <filename>\n"
"\n"
"Adds the given filename to the head of the update queue and returns\n"
- "after i
s
has been dequeued.\n"
+ "after i
t
has been dequeued.\n"
};
char *help_flushall[2] =
};
char *help_flushall[2] =