summaryrefslogtreecommitdiff
path: root/tests/test-fwriting.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-fwriting.c')
-rw-r--r--tests/test-fwriting.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/test-fwriting.c b/tests/test-fwriting.c
index f2ae068a25..9916b82292 100644
--- a/tests/test-fwriting.c
+++ b/tests/test-fwriting.c
@@ -1,5 +1,5 @@
/* Test of fwriting() function.
- Copyright (C) 2007-2008 Free Software Foundation, Inc.
+ Copyright (C) 2007-2009 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
@@ -23,6 +23,12 @@
#include <stdio.h>
#include <stdlib.h>
+/* None of the files accessed by this test are large, so disable the
+ fseek link warning if we are not using the gnulib fseek module. */
+#if !GNULIB_FSEEK
+# undef fseek
+#endif
+
#define ASSERT(expr) \
do \
{ \