[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cairo-commit
Subject:    [cairo-commit] configure.in perf/cairo-perf.c
From:       behdad () kemper ! freedesktop ! org (Behdad Esfahbod)
Date:       2007-04-30 23:20:42
Message-ID: 20070430232042.5A60A10089 () kemper ! freedesktop ! org
[Download RAW message or body]

 configure.in                 |    4 ++++
 perf/cairo-perf-diff-files.c |    2 ++
 perf/cairo-perf.c            |    6 +++++-
 3 files changed, 11 insertions(+), 1 deletion(-)

New commits:
diff-tree 8ea48710dc933cd5dd52fb7d0c29eb8994a5d160 (from fbc8bf05033a652d26c1defa56d12183e4009870)
Author: Behdad Esfahbod <behdad@behdad.org>
Date:   Mon Apr 30 19:20:56 2007 -0400

    [perf] Check availability before including nonstandard headers

diff --git a/configure.in b/configure.in
index b2aa53f..ddeb635 100644
--- a/configure.in
+++ b/configure.in
@@ -609,6 +609,10 @@ AC_CHECK_HEADERS([sched.h], [
 ])
 
 dnl ===========================================================================
+dnl Checks for misc headers
+AC_CHECK_HEADERS([libgen.h])
+
+dnl ===========================================================================
 dnl check compiler flags
 AC_DEFUN([CAIRO_CC_TRY_FLAG], [
   AC_MSG_CHECKING([whether $CC supports $1])
diff --git a/perf/cairo-perf-diff-files.c b/perf/cairo-perf-diff-files.c
index 2fd6229..6828375 100644
--- a/perf/cairo-perf-diff-files.c
+++ b/perf/cairo-perf-diff-files.c
@@ -38,7 +38,9 @@
 #include <ctype.h>
 #include <math.h>
 #include <assert.h>
+#ifdef HAVE_LIBGEN_H
 #include <libgen.h>
+#endif
 
 typedef struct _test_report {
     int id;
diff --git a/perf/cairo-perf.c b/perf/cairo-perf.c
index af06bb6..360f2dd 100644
--- a/perf/cairo-perf.c
+++ b/perf/cairo-perf.c
@@ -27,12 +27,16 @@
  */
 
 #include "cairo-perf.h"
-#include "config.h"
 
 /* For getopt */
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
+#endif
+
 /* For basename */
+#ifdef HAVE_LIBGEN_H
 #include <libgen.h>
+#endif
 
 #if HAVE_FCFINI
 #include <fontconfig/fontconfig.h>
_______________________________________________
cairo-commit mailing list
cairo-commit@cairographics.org
http://cairographics.org/cgi-bin/mailman/listinfo/cairo-commit
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic