projects
/
free-sw
/
xcb
/
libxcb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Always include "config.h" at the start of all C source files.
[free-sw/xcb/libxcb]
/
src
/
xcb_util.c
diff --git
a/src/xcb_util.c
b/src/xcb_util.c
index
f17aa3c
..
e480d75
100644
(file)
--- a/
src/xcb_util.c
+++ b/
src/xcb_util.c
@@
-25,6
+25,10
@@
/* Utility functions implementable using only public APIs. */
/* Utility functions implementable using only public APIs. */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <assert.h>
#include <sys/types.h>
#include <limits.h>
#include <assert.h>
#include <sys/types.h>
#include <limits.h>
@@
-51,7
+55,6
@@
#include "xcbext.h"
#include "xcbint.h"
#include "xcbext.h"
#include "xcbint.h"
-/* must be after "xcbint.h" to get autoconf #defines */
#if defined(HAVE_TSOL_LABEL_H) && defined(HAVE_IS_SYSTEM_LABELED)
# include <tsol/label.h>
# include <sys/stat.h>
#if defined(HAVE_TSOL_LABEL_H) && defined(HAVE_IS_SYSTEM_LABELED)
# include <tsol/label.h>
# include <sys/stat.h>
@@
-175,7
+178,7
@@
static int _xcb_open(const char *host, char *protocol, const int display)
if(strncmp(host, "/tmp/launch", 11) == 0) {
base = host;
host = "";
if(strncmp(host, "/tmp/launch", 11) == 0) {
base = host;
host = "";
- protocol =
NULL
;
+ protocol =
"unix"
;
}
#endif
}
#endif