From: cuz Date: Thu, 12 Jun 2003 18:08:46 +0000 (+0000) Subject: unistd.h needs off_t X-Git-Tag: V2.12.0~1503 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=527d109931116c8374f49676aaf67ef73daf7620;p=cc65 unistd.h needs off_t git-svn-id: svn://svn.cc65.org/cc65/trunk@2215 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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 + /*****************************************************************************/