+2007-04-25 Bruno Haible <bruno@clisp.org>
+
+ * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
+ * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
+ * tests/test-unistd.c: Likewise.
+ * tests/test-fcntl.c: Likewise.
+
2007-04-23 Eric Blake <ebb9@byu.net>
* lib/fflush.c: Fix missing include.
# include @ABSOLUTE_UNISTD_H@
#endif
+/* mingw doesn't define the SEEK_* macros in <unistd.h>. */
+#if !(defined SEEK_CUR && defined SEEK_END && defined SEEK_SET)
+# include <stdio.h>
+#endif
+
/* The definition of GL_LINK_WARNING is copied here. */
| O_NOCTTY | O_NOFOLLOW | O_NOLINKS | O_RSYNC | O_SYNC
| O_BINARY | O_TEXT;
+/* Check that the various SEEK_* macros are defined. */
+int sk[] = { SEEK_CUR, SEEK_END, SEEK_SET };
+
int
main ()
{
#include <stdio.h>
+/* Check that the various SEEK_* macros are defined. */
+int sk[] = { SEEK_CUR, SEEK_END, SEEK_SET };
+
int
main ()
{
#include <unistd.h>
+/* Check that the various SEEK_* macros are defined. */
+int sk[] = { SEEK_CUR, SEEK_END, SEEK_SET };
+
int
main ()
{