bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ignore-value vs off_t


From: Simon Josefsson
Subject: ignore-value vs off_t
Date: Sun, 30 Jan 2011 09:29:36 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux)

Looks like the off_t definition is not getting pulled in by
test-ignore-value.c?  I pushed the patch below.

/Simon

address@hidden:~/src/gnulib$ gnulib-tool --test --with-tests ignore-value
...
gcc -DHAVE_CONFIG_H -I. -I../../gltests  -DGNULIB_STRICT_CHECKING=1 -I. 
-I../../gltests -I.. -I../../gltests/.. -I../gllib -I../../gltests/../gllib   
-g -O2 -MT test-ignore-value.o -MD -MP -MF .deps/test-ignore-value.Tpo -c -o 
test-ignore-value.o ../../gltests/test-ignore-value.c
../../gltests/test-ignore-value.c:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’ before ‘doOff’
../../gltests/test-ignore-value.c:54: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’ before ‘doOff’
make[4]: *** [test-ignore-value.o] Fel 1

>From 13f769497814bf636c5d2a98f1b17cbf0d088be9 Mon Sep 17 00:00:00 2001
From: Simon Josefsson <address@hidden>
Date: Sun, 30 Jan 2011 09:28:59 +0100
Subject: [PATCH] ignore-value: Fix self-test.

* tests/test-ignore-value.c: Include sys/types.h for off_t.
---
 ChangeLog                 |    5 +++++
 tests/test-ignore-value.c |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index da52674..e8dc0ac 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-01-30  Simon Josefsson  <address@hidden>
+
+       ignore-value: Fix self-test.
+       * tests/test-ignore-value.c: Include sys/types.h for off_t.
+
 2011-01-29  Paul Eggert  <address@hidden>
 
        TYPE_MAXIMUM: avoid theoretically undefined behavior
diff --git a/tests/test-ignore-value.c b/tests/test-ignore-value.c
index a1c86e0..c21d5be 100644
--- a/tests/test-ignore-value.c
+++ b/tests/test-ignore-value.c
@@ -22,6 +22,7 @@
 #include "ignore-value.h"
 
 #include <stdio.h>
+#include <sys/types.h>
 
 #ifndef ATTRIBUTE_RETURN_CHECK
 # if __GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ < 1)
-- 
1.7.2.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]