[sane-devel] Fnctl Functions
Hugh McMaster
dasjournal at gmail.com
Sat Jun 16 23:45:46 UTC 2007
Hi Gerald,
On 13/06/07, Gerald Murray wrote:
> Be sure that your Makefile includes "-I/usr/include" in its flags
> (check your platform ( MinGW?) for similar dependencies)
> On linux all are included in normal Makefile. Mine are:
>
> sanei_usb.c:
> #include <fcntl.h>
>
> /usr/include/fcntl.h:
> #include <bits/fcntl.h>
>
> /usr/include/bits/fcntl.h:
> #ifndef _FCNTL_H
> # error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
> #endif
> ..
> #define F_GETFD 1 /* Get file descriptor flags. */
> #define F_SETFD 2 /* Set file descriptor flags. */
> ..
> #define FD_CLOEXEC 1 /* actually anything with low bit set goes */
Sorry for taking so long to reply. I checked the dependencies, and
found that /usr/include/bits/fcntl.h was missing, and without the
#defines that you listed before. So the compiler now gets past that
point.
Hugh
More information about the sane-devel
mailing list