summaryrefslogtreecommitdiff
path: root/src/rhd_edid.c
diff options
context:
space:
mode:
authorEgbert Eich <eich@freedesktop.org>2007-12-18 23:03:07 +0100
committerEgbert Eich <eich@freedesktop.org>2007-12-19 00:13:42 +0100
commit861debbf8d649ce09d53d5880f819757ac9c7814 (patch)
tree764a38de40e0f863531cae40bbf03dca27d6a6d2 /src/rhd_edid.c
parent9120f95f90c95f7d6d1ba6cf1f0fc515646f8314 (diff)
Make the driver build with the latest ustream git server sources again.
The driver stopped building due to the removal of xf86_ansic.h and xf86_libc.h in the latest upstream sources. This patch consolidates the heterogenious handling of system functions in this driver. The system function wrappers remain fully supported for older server versions.
Diffstat (limited to 'src/rhd_edid.c')
-rw-r--r--src/rhd_edid.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/rhd_edid.c b/src/rhd_edid.c
index c5908e2..787b164 100644
--- a/src/rhd_edid.c
+++ b/src/rhd_edid.c
@@ -30,10 +30,11 @@
#include "xf86.h"
#include "xf86DDC.h"
-
-#ifndef _XF86_ANSIC_H
-#include <string.h>
-#include <stdio.h>
+#if HAVE_XF86_ANSIC_H
+# include "xf86_ansic.h"
+#else
+# include <string.h>
+# include <stdio.h>
#endif
#include "rhd.h"