[Top][All Lists]

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

[Tinycc-devel] 0.9.22 versus linux large file support

From: charlesrandall4-tinycc
Subject: [Tinycc-devel] 0.9.22 versus linux large file support
Date: Wed, 17 Nov 2004 02:29:07 -0800 (PST)

[Apologies if this is a duplicate message. I never saw
the original make it to the list.]

I've narrowed the following problem down trying to
build patch-2.5.4.

The define in the code below is neccesary to build
patch using tcc, but not with gcc.

Defining _LARGEFILE_SOURCE doesn't help.

It appears that this may be an error in the header

Any other ideas?


/* backupfile.c */
#define _FILE_OFFSET_BITS 64

#include <sys/types.h>
#include <dirent.h>

#ifdef __TINYC__
#define dirent dirent64

int x(char *dir)
  DIR *dirp;
  struct dirent *dp;
  dp = readdir (dirp);
  return 1;

reply via email to

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