From c571b02a40485aa46e146a68d6d47eca71a4b477 Mon Sep 17 00:00:00 2001
From: Bruno Haible <bruno@clisp.org>
Date: Sat, 15 Nov 2008 13:33:04 +0100
Subject: [PATCH] Include config.h in all tests.

---
 tests/test-flock.c   | 3 +++
 tests/test-iconvme.c | 2 ++
 tests/test-stpncpy.c | 4 +++-
 3 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/tests/test-flock.c b/tests/test-flock.c
index a1872cda72..f71532ee29 100644
--- a/tests/test-flock.c
+++ b/tests/test-flock.c
@@ -14,6 +14,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#include <config.h>
+
+#include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
diff --git a/tests/test-iconvme.c b/tests/test-iconvme.c
index 58e8c5cdb7..3cf26c8319 100644
--- a/tests/test-iconvme.c
+++ b/tests/test-iconvme.c
@@ -15,6 +15,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#include <config.h>
+
 #include <stdlib.h>
 #include <stdio.h>
 
diff --git a/tests/test-stpncpy.c b/tests/test-stpncpy.c
index c89037944a..128bee3163 100644
--- a/tests/test-stpncpy.c
+++ b/tests/test-stpncpy.c
@@ -1,5 +1,5 @@
 /* Test the system defined function stpncpy().
-   Copyright (C) 2003 Free Software Foundation, Inc.
+   Copyright (C) 2003, 2008 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -14,6 +14,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#include <config.h>
+
 #include <string.h>
 #include <stdio.h>
 
-- 
2.39.5