[Piglit] [PATCH 6/8] config.h.in: add define for HAVE_STRNDUP

Kenney Phillis kphillisjr at gmail.com
Mon Sep 30 20:11:06 PDT 2013


This fixes compile problems on various systems where strndup
can be found but the HAVE_STRNDUP define is not being set.

V2: Made the changes that Petri Latvala suggested. However the
    exact line for the define of HAVE_STRNDUP needed to be
    placed next to the other function defines in config.h.in
---
 tests/util/config.h.in |    1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/util/config.h.in b/tests/util/config.h.in
index b664adc..2e8262a 100644
--- a/tests/util/config.h.in
+++ b/tests/util/config.h.in
@@ -1,6 +1,7 @@
 #cmakedefine HAVE_STRCHRNUL
 #cmakedefine HAVE_FOPEN_S
 #cmakedefine HAVE_SETRLIMIT
+#cmakedefine HAVE_STRNDUP
 
 #cmakedefine HAVE_FCNTL_H
 #cmakedefine HAVE_SYS_STAT_H
-- 
1.7.9.5



More information about the Piglit mailing list