bug-gnulib
[Top][All Lists]
Advanced

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

lseek always include windows.h?


From: Simon Josefsson
Subject: lseek always include windows.h?
Date: Mon, 04 Jun 2007 22:44:33 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.0.95 (gnu/linux)

I got this error building GNU SASL for uClinux:

/bin/sh ../libtool --tag=CC   --mode=compile ucfront-gcc m68k-elf-gcc -m5200 
-DCONFIG_COLDFIRE -DHAVE_CONFIG_H -I. -I.. -I../../gl     -g 
-fomit-frame-pointer -pipe -fno-common -fno-builtin -Wall -DEMBED -msep-data 
-Dlinux -D__linux__ -Dunix -D__uClinux__ -MT lseek.lo -MD -MP -MF 
.deps/lseek.Tpo -c -o lseek.lo ../../gl/lseek.c
 ucfront-gcc m68k-elf-gcc -m5200 -DCONFIG_COLDFIRE -DHAVE_CONFIG_H -I. -I.. 
-I../../gl -g -fomit-frame-pointer -pipe -fno-common -fno-builtin -Wall -DEMBED 
-msep-data -Dlinux -D__linux__ -Dunix -D__uClinux__ -MT lseek.lo -MD -MP -MF 
.deps/lseek.Tpo -c ../../gl/lseek.c -o lseek.o
../../gl/lseek.c:25:21: error: windows.h: No such file or directory
../../gl/lseek.c: In function 'rpl_lseek':
../../gl/lseek.c:34: error: 'HANDLE' undeclared (first use in this function)
../../gl/lseek.c:34: error: (Each undeclared identifier is reported only once
../../gl/lseek.c:34: error: for each function it appears in.)
../../gl/lseek.c:34: error: expected ';' before 'h'
../../gl/lseek.c:35: error: 'h' undeclared (first use in this function)
../../gl/lseek.c:35: error: 'INVALID_HANDLE_VALUE' undeclared (first use in 
this function)
../../gl/lseek.c:40: warning: implicit declaration of function 'GetFileType'
../../gl/lseek.c:40: error: 'FILE_TYPE_DISK' undeclared (first use in this 
function)
make[6]: *** [lseek.lo] Error 1
make[6]: Leaving directory `/data/fast/uclinux/uClinux-dist/lib/gsasl/build/gl'

Configure said:

checking whether lseek detects pipes... no

Any ideas?

Is this logic wrong perhaps:

       AC_LINK_IFELSE([
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
/* mingw mistakenly returns 0 when trying to seek on pipes.  */
  Choke me.
#endif],
         [gl_cv_func_lseek_pipe=yes], [gl_cv_func_lseek_pipe=no])
     fi])

Generally, it seems lseek gets pulled in by getpass, via fseeko.  I
wonder if getpass need to use fseeko?

/Simon




reply via email to

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