From 527d109931116c8374f49676aaf67ef73daf7620 Mon Sep 17 00:00:00 2001 From: cuz Date: Thu, 12 Jun 2003 18:08:46 +0000 Subject: [PATCH] unistd.h needs off_t git-svn-id: svn://svn.cc65.org/cc65/trunk@2215 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- include/sys/types.h | 4 ++++ include/unistd.h | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/include/sys/types.h b/include/sys/types.h index 25907de15..0eb415186 100644 --- a/include/sys/types.h +++ b/include/sys/types.h @@ -44,7 +44,11 @@ +/* off_t is also defined in unistd.h */ +#ifndef __HAVE_off_t +#define __HAVE_off_t typedef long int off_t; +#endif diff --git a/include/unistd.h b/include/unistd.h index e152f2e88..039775e65 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -49,6 +49,12 @@ #define STDOUT_FILENO 1 #define STDERR_FILENO 2 +/* We need off_t if sys/types is not included */ +#ifndef __HAVE_off_t +#define __HAVE_off_t +typedef long int off_t; +#endif + /*****************************************************************************/ -- 2.39.5