summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-02-14 11:05:48 -0800
committerKeith Packard <keithp@keithp.com>2013-02-14 11:05:48 -0800
commit90642948cc78834d95f7a3bddaac7ff77b68ed7e (patch)
tree8164a9b40959f1a8663277eea1ca30cede016815
parent9a35d4240e2aa91ac104f0f9f86f83ff9a2d3d04 (diff)
parenteda7dbff5a9f35fefe1e3dedacb82daadbf5945e (diff)
Merge remote-tracking branch 'jeremyhu/master'
-rw-r--r--hw/xquartz/GL/capabilities.c4
-rw-r--r--m4/xorg-tls.m42
-rw-r--r--os/strndup.c4
3 files changed, 9 insertions, 1 deletions
diff --git a/hw/xquartz/GL/capabilities.c b/hw/xquartz/GL/capabilities.c
index 4702595f4..5573629fd 100644
--- a/hw/xquartz/GL/capabilities.c
+++ b/hw/xquartz/GL/capabilities.c
@@ -20,6 +20,10 @@
* DEALINGS IN THE SOFTWARE.
*/
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
diff --git a/m4/xorg-tls.m4 b/m4/xorg-tls.m4
index 237fdcd9e..e04f1ff56 100644
--- a/m4/xorg-tls.m4
+++ b/m4/xorg-tls.m4
@@ -28,7 +28,7 @@ AC_DEFUN([XORG_TLS], [
ac_cv_tls=none
keywords="__thread __declspec(thread)"
for kw in $keywords ; do
- AC_TRY_COMPILE([int $kw test;], [], ac_cv_tls=$kw)
+ AC_TRY_COMPILE([int $kw test;], [], ac_cv_tls=$kw ; break ;)
done
])
AC_MSG_RESULT($ac_cv_tls)
diff --git a/os/strndup.c b/os/strndup.c
index b604b9bac..e0eddf13d 100644
--- a/os/strndup.c
+++ b/os/strndup.c
@@ -27,6 +27,10 @@
* SUCH DAMAGE.
*/
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#include <stddef.h>
#include <stdlib.h>
#include <string.h>