]> git.sur5r.net Git - cc65/commitdiff
unistd.h needs off_t
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 12 Jun 2003 18:08:46 +0000 (18:08 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 12 Jun 2003 18:08:46 +0000 (18:08 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2215 b7a2c559-68d2-44c3-8de9-860c34a00d81

include/sys/types.h
include/unistd.h

index 25907de151e5ac02213185777509c1dc40b04a67..0eb415186511c8f13ef4610f8245d26a7ef64066 100644 (file)
 
 
 
+/* off_t is also defined in unistd.h */
+#ifndef __HAVE_off_t
+#define __HAVE_off_t
 typedef long int off_t;
+#endif
 
 
 
index e152f2e88d288144a75eb19a9cdf2246fbe6a86e..039775e654249754682fbd5d3c090abcc3151ce7 100644 (file)
 #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
+
 
 
 /*****************************************************************************/