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

LFS problem with Debian testing



Hello,

I'm having problems with opening large (>2 GB) files on a Debian testing
system:

---
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
[...]
int fd;
fd = open(argv[1], O_RDONLY | O_LARGEFILE);
[...]
---

gcc complains that O_LARGEFILE is undeclared. However, if I
#define O_LARGEFILE 0100000
the program works.

What am I doing wrong? Is there a problem with the header files? I'm using
libc6 2.3.1-16 and gcc 3.3.1 (both latest Debian testing packages) on a
i386 system.


TIA, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~



Reply to: