aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--intel/test_decode.c5
-rw-r--r--libkms/api.c2
-rw-r--r--libkms/dumb.c4
-rw-r--r--libkms/exynos.c4
-rw-r--r--libkms/intel.c4
-rw-r--r--libkms/linux.c2
-rw-r--r--libkms/nouveau.c4
-rw-r--r--libkms/radeon.c4
-rw-r--r--libkms/vmwgfx.c4
-rw-r--r--tests/drmstat.c2
-rw-r--r--tests/modetest/buffers.c2
-rw-r--r--tests/modetest/cursor.c2
-rw-r--r--tests/modetest/modetest.c2
-rw-r--r--tests/vbltest/vbltest.c2
14 files changed, 35 insertions, 8 deletions
diff --git a/intel/test_decode.c b/intel/test_decode.c
index b710f342..bef9d99f 100644
--- a/intel/test_decode.c
+++ b/intel/test_decode.c
@@ -21,7 +21,9 @@
21 * IN THE SOFTWARE. 21 * IN THE SOFTWARE.
22 */ 22 */
23 23
24#define _GNU_SOURCE 24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
25 27
26#include <string.h> 28#include <string.h>
27#include <stdlib.h> 29#include <stdlib.h>
@@ -33,7 +35,6 @@
33#include <sys/mman.h> 35#include <sys/mman.h>
34#include <err.h> 36#include <err.h>
35 37
36#include "config.h"
37#include "intel_bufmgr.h" 38#include "intel_bufmgr.h"
38#include "intel_chipset.h" 39#include "intel_chipset.h"
39 40
diff --git a/libkms/api.c b/libkms/api.c
index 5befaa0f..b512c42d 100644
--- a/libkms/api.c
+++ b/libkms/api.c
@@ -26,7 +26,9 @@
26 **************************************************************************/ 26 **************************************************************************/
27 27
28 28
29#ifdef HAVE_CONFIG_H
29#include "config.h" 30#include "config.h"
31#endif
30#include <errno.h> 32#include <errno.h>
31#include <stdlib.h> 33#include <stdlib.h>
32#include <string.h> 34#include <string.h>
diff --git a/libkms/dumb.c b/libkms/dumb.c
index 440efb31..794282fb 100644
--- a/libkms/dumb.c
+++ b/libkms/dumb.c
@@ -26,7 +26,9 @@
26 **************************************************************************/ 26 **************************************************************************/
27 27
28 28
29#define HAVE_STDINT_H 29#ifdef HAVE_CONFIG_H
30#include "config.h"
31#endif
30#define _FILE_OFFSET_BITS 64 32#define _FILE_OFFSET_BITS 64
31 33
32#include <errno.h> 34#include <errno.h>
diff --git a/libkms/exynos.c b/libkms/exynos.c
index 93e36a12..243915b5 100644
--- a/libkms/exynos.c
+++ b/libkms/exynos.c
@@ -11,7 +11,9 @@
11 * option) any later version. 11 * option) any later version.
12 */ 12 */
13 13
14#define HAVE_STDINT_H 14#ifdef HAVE_CONFIG_H
15#include "config.h"
16#endif
15#define _FILE_OFFSET_BITS 64 17#define _FILE_OFFSET_BITS 64
16 18
17#include <errno.h> 19#include <errno.h>
diff --git a/libkms/intel.c b/libkms/intel.c
index abae4525..92f1cf25 100644
--- a/libkms/intel.c
+++ b/libkms/intel.c
@@ -26,7 +26,9 @@
26 **************************************************************************/ 26 **************************************************************************/
27 27
28 28
29#define HAVE_STDINT_H 29#ifdef HAVE_CONFIG_H
30#include "config.h"
31#endif
30#define _FILE_OFFSET_BITS 64 32#define _FILE_OFFSET_BITS 64
31 33
32#include <errno.h> 34#include <errno.h>
diff --git a/libkms/linux.c b/libkms/linux.c
index 9b4f29e1..17e1d588 100644
--- a/libkms/linux.c
+++ b/libkms/linux.c
@@ -30,7 +30,9 @@
30 */ 30 */
31 31
32 32
33#ifdef HAVE_CONFIG_H
33#include "config.h" 34#include "config.h"
35#endif
34#include <errno.h> 36#include <errno.h>
35#include <stdio.h> 37#include <stdio.h>
36#include <stdlib.h> 38#include <stdlib.h>
diff --git a/libkms/nouveau.c b/libkms/nouveau.c
index 608092f5..2de827d9 100644
--- a/libkms/nouveau.c
+++ b/libkms/nouveau.c
@@ -26,7 +26,9 @@
26 **************************************************************************/ 26 **************************************************************************/
27 27
28 28
29#define HAVE_STDINT_H 29#ifdef HAVE_CONFIG_H
30#include "config.h"
31#endif
30#define _FILE_OFFSET_BITS 64 32#define _FILE_OFFSET_BITS 64
31 33
32#include <errno.h> 34#include <errno.h>
diff --git a/libkms/radeon.c b/libkms/radeon.c
index f5e382ae..29375c4c 100644
--- a/libkms/radeon.c
+++ b/libkms/radeon.c
@@ -26,7 +26,9 @@
26 **************************************************************************/ 26 **************************************************************************/
27 27
28 28
29#define HAVE_STDINT_H 29#ifdef HAVE_CONFIG_H
30#include "config.h"
31#endif
30#define _FILE_OFFSET_BITS 64 32#define _FILE_OFFSET_BITS 64
31 33
32#include <errno.h> 34#include <errno.h>
diff --git a/libkms/vmwgfx.c b/libkms/vmwgfx.c
index d594b3bd..598f383c 100644
--- a/libkms/vmwgfx.c
+++ b/libkms/vmwgfx.c
@@ -26,7 +26,9 @@
26 **************************************************************************/ 26 **************************************************************************/
27 27
28 28
29#define HAVE_STDINT_H 29#ifdef HAVE_CONFIG_H
30#include "config.h"
31#endif
30#define _FILE_OFFSET_BITS 64 32#define _FILE_OFFSET_BITS 64
31 33
32#include <errno.h> 34#include <errno.h>
diff --git a/tests/drmstat.c b/tests/drmstat.c
index c51cbc6c..5935d07a 100644
--- a/tests/drmstat.c
+++ b/tests/drmstat.c
@@ -28,7 +28,9 @@
28 * 28 *
29 */ 29 */
30 30
31#ifdef HAVE_CONFIG_H
31#include "config.h" 32#include "config.h"
33#endif
32 34
33#include <stdio.h> 35#include <stdio.h>
34#include <stdlib.h> 36#include <stdlib.h>
diff --git a/tests/modetest/buffers.c b/tests/modetest/buffers.c
index 8206ce31..29b520de 100644
--- a/tests/modetest/buffers.c
+++ b/tests/modetest/buffers.c
@@ -24,7 +24,9 @@
24 * IN THE SOFTWARE. 24 * IN THE SOFTWARE.
25 */ 25 */
26 26
27#ifdef HAVE_CONFIG_H
27#include "config.h" 28#include "config.h"
29#endif
28 30
29#include <assert.h> 31#include <assert.h>
30#include <errno.h> 32#include <errno.h>
diff --git a/tests/modetest/cursor.c b/tests/modetest/cursor.c
index 7077f203..60f240ac 100644
--- a/tests/modetest/cursor.c
+++ b/tests/modetest/cursor.c
@@ -22,7 +22,9 @@
22 * IN THE SOFTWARE. 22 * IN THE SOFTWARE.
23 */ 23 */
24 24
25#ifdef HAVE_CONFIG_H
25#include "config.h" 26#include "config.h"
27#endif
26 28
27#include <assert.h> 29#include <assert.h>
28#include <errno.h> 30#include <errno.h>
diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c
index 7d436b56..92efb823 100644
--- a/tests/modetest/modetest.c
+++ b/tests/modetest/modetest.c
@@ -37,7 +37,9 @@
37 * TODO: use cairo to write the mode info on the selected output once 37 * TODO: use cairo to write the mode info on the selected output once
38 * the mode has been programmed, along with possible test patterns. 38 * the mode has been programmed, along with possible test patterns.
39 */ 39 */
40#ifdef HAVE_CONFIG_H
40#include "config.h" 41#include "config.h"
42#endif
41 43
42#include <assert.h> 44#include <assert.h>
43#include <ctype.h> 45#include <ctype.h>
diff --git a/tests/vbltest/vbltest.c b/tests/vbltest/vbltest.c
index 2a09d28e..50e29dcd 100644
--- a/tests/vbltest/vbltest.c
+++ b/tests/vbltest/vbltest.c
@@ -37,7 +37,9 @@
37 * TODO: use cairo to write the mode info on the selected output once 37 * TODO: use cairo to write the mode info on the selected output once
38 * the mode has been programmed, along with possible test patterns. 38 * the mode has been programmed, along with possible test patterns.
39 */ 39 */
40#ifdef HAVE_CONFIG_H
40#include "config.h" 41#include "config.h"
42#endif
41 43
42#include <assert.h> 44#include <assert.h>
43#include <stdio.h> 45#include <stdio.h>