Could you advice me how can I make it work open() function with gcc 4.1.2?
#include <fnctl.h>
int fdl
fd = open(“test.dat”, O_RDONLY);
close(fd);
then I get error “O_RDONLY is not defined”. This works for older glib such as gcc 3.4.6.
Is there good way of make open() function work with gcc 4.1.2?
I would like to stick with open function rather than fopen function because it requires me
further modifications into codes.