Make sure that "offsetof" is defined on all hosts, now that archive.c uses it.
This commit is contained in:
parent
f8efbf2296
commit
c5652bffcb
@ -1,3 +1,4 @@
|
||||
#include <stddef.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
@ -20,4 +21,5 @@ typedef long int64_type;
|
||||
|
||||
#define uint64_typeLOW(x) (((x) & 0xffffffff))
|
||||
#define uint64_typeHIGH(x) (((x) >> 32) & 0xffffffff)
|
||||
|
||||
#include "fopen-same.h"
|
||||
|
@ -10,7 +10,7 @@
|
||||
#include <string.h>
|
||||
#include <sys/file.h>
|
||||
|
||||
#ifndef O_ACCMODE
|
||||
#ifndef O_ACCMODE
|
||||
#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
|
||||
#endif
|
||||
#define SEEK_SET 0
|
||||
@ -48,3 +48,8 @@ extern int fputc();
|
||||
extern int unlink();
|
||||
|
||||
#include "fopen-same.h"
|
||||
|
||||
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
|
||||
#ifndef offsetof
|
||||
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
|
||||
#endif
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <ctype.h>
|
||||
#include <strings.h>
|
||||
#ifndef O_ACCMODE
|
||||
#ifndef O_ACCMODE
|
||||
#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
|
||||
#endif
|
||||
#ifndef SEEK_SET
|
||||
@ -18,10 +18,15 @@
|
||||
#define MAXPATHLEN 1024
|
||||
#endif /* MAXPATHLEN */
|
||||
|
||||
#ifndef DONTDECLARE_MALLOC
|
||||
#ifndef DONTDECLARE_MALLOC
|
||||
extern PTR malloc PARAMS ((unsigned));
|
||||
extern PTR realloc PARAMS ((PTR, unsigned));
|
||||
extern void free PARAMS ((PTR));
|
||||
#endif
|
||||
|
||||
#include "fopen-same.h"
|
||||
|
||||
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
|
||||
#ifndef offsetof
|
||||
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
|
||||
#endif
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include <utime.h>
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
#ifndef O_ACCMODE
|
||||
#ifndef O_ACCMODE
|
||||
#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
|
||||
#endif
|
||||
#define SEEK_SET 0
|
||||
@ -29,10 +29,15 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#ifndef DONTDECLARE_MALLOC
|
||||
#ifndef DONTDECLARE_MALLOC
|
||||
extern PTR malloc PARAMS ((unsigned));
|
||||
extern PTR realloc PARAMS ((PTR, unsigned));
|
||||
extern void free PARAMS ((PTR));
|
||||
#endif
|
||||
|
||||
#include "fopen-same.h"
|
||||
|
||||
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
|
||||
#ifndef offsetof
|
||||
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
|
||||
#endif
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
#define USE_UTIME
|
||||
|
||||
#ifndef DONTDECLARE_MALLOC
|
||||
#ifndef DONTDECLARE_MALLOC
|
||||
extern PTR malloc PARAMS ((unsigned));
|
||||
extern PTR realloc PARAMS ((PTR, unsigned));
|
||||
#endif
|
||||
@ -82,3 +82,8 @@ extern int unlink();
|
||||
|
||||
|
||||
#include "fopen-same.h"
|
||||
|
||||
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
|
||||
#ifndef offsetof
|
||||
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
|
||||
#endif
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#ifndef DONTDECLARE_MALLOC
|
||||
#ifndef DONTDECLARE_MALLOC
|
||||
extern PTR malloc PARAMS ((unsigned));
|
||||
extern PTR realloc PARAMS ((PTR, unsigned));
|
||||
#endif
|
||||
@ -27,3 +27,8 @@ extern int strtol();
|
||||
|
||||
|
||||
#include "fopen-same.h"
|
||||
|
||||
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
|
||||
#ifndef offsetof
|
||||
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
|
||||
#endif
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include <stddef.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
@ -6,7 +7,7 @@
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
#include <sys/file.h>
|
||||
#ifndef O_ACCMODE
|
||||
#ifndef O_ACCMODE
|
||||
#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
|
||||
#endif
|
||||
#define SEEK_SET 0
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include <stddef.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
@ -7,7 +8,7 @@
|
||||
#include <string.h>
|
||||
#include <sys/file.h>
|
||||
#include <stdlib.h>
|
||||
#ifndef O_ACCMODE
|
||||
#ifndef O_ACCMODE
|
||||
#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
|
||||
#endif
|
||||
#define SEEK_SET 0
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#ifndef DONTDECLARE_MALLOC
|
||||
#ifndef DONTDECLARE_MALLOC
|
||||
extern PTR malloc PARAMS ((unsigned));
|
||||
extern PTR realloc PARAMS ((PTR, unsigned));
|
||||
#endif
|
||||
@ -24,3 +24,8 @@ extern void bzero PARAMS ((char *, int));
|
||||
extern int strtol();
|
||||
|
||||
#include "fopen-same.h"
|
||||
|
||||
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
|
||||
#ifndef offsetof
|
||||
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
|
||||
#endif
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include <stddef.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
@ -6,7 +7,7 @@
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
#include <sys/file.h>
|
||||
#ifndef O_ACCMODE
|
||||
#ifndef O_ACCMODE
|
||||
#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
|
||||
#endif
|
||||
#define SEEK_SET 0
|
||||
|
@ -1,6 +1,7 @@
|
||||
#ifndef _HPPABSD_H
|
||||
#ifndef _HPPABSD_H
|
||||
#define _HPPABSD_H
|
||||
|
||||
#include <stddef.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
@ -14,7 +15,7 @@
|
||||
|
||||
#define HOST_HPPABSD
|
||||
|
||||
#ifndef O_ACCMODE
|
||||
#ifndef O_ACCMODE
|
||||
#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
|
||||
#endif
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
#ifndef _HPPAHPUX_H
|
||||
#ifndef _HPPAHPUX_H
|
||||
#define _HPPAHPUX_H
|
||||
|
||||
#include <stddef.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
@ -16,13 +17,13 @@
|
||||
|
||||
void free();
|
||||
|
||||
#ifndef O_ACCMODE
|
||||
#ifndef O_ACCMODE
|
||||
#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
|
||||
#endif
|
||||
#define SEEK_SET 0
|
||||
#define SEEK_CUR 1
|
||||
|
||||
#ifndef __STDC__
|
||||
#ifndef __STDC__
|
||||
#define NATIVE_HPPAHPUX_COMPILER
|
||||
#endif
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
#include <string.h>
|
||||
#include <sys/file.h>
|
||||
|
||||
#ifndef O_ACCMODE
|
||||
#ifndef O_ACCMODE
|
||||
#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
|
||||
#endif
|
||||
#define SEEK_SET 0
|
||||
@ -46,3 +46,8 @@ extern int fputc();
|
||||
extern int unlink();
|
||||
|
||||
#include "fopen-same.h"
|
||||
|
||||
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
|
||||
#ifndef offsetof
|
||||
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
|
||||
#endif
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* Intel 386 running any BSD Unix */
|
||||
|
||||
#ifndef hosts_i386bsd_H
|
||||
#ifndef hosts_i386bsd_H
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
@ -11,7 +11,7 @@
|
||||
#include <string.h>
|
||||
#include <sys/file.h>
|
||||
|
||||
#ifndef O_ACCMODE
|
||||
#ifndef O_ACCMODE
|
||||
#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
|
||||
#endif
|
||||
|
||||
@ -28,3 +28,8 @@
|
||||
#define hosts_i386bsd_H
|
||||
#undef I386 /* Lynx defines this for some reason */
|
||||
#endif
|
||||
|
||||
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
|
||||
#ifndef offsetof
|
||||
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
|
||||
#endif
|
||||
|
@ -8,10 +8,10 @@
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#ifndef O_ACCMODE
|
||||
#ifndef O_ACCMODE
|
||||
#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
|
||||
#endif
|
||||
#ifndef SEEK_SET
|
||||
#ifndef SEEK_SET
|
||||
#define SEEK_SET 0
|
||||
#define SEEK_CUR 1
|
||||
#endif
|
||||
@ -28,10 +28,15 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#ifndef DONTDECLARE_MALLOC
|
||||
#ifndef DONTDECLARE_MALLOC
|
||||
extern PTR malloc PARAMS ((unsigned));
|
||||
extern PTR realloc PARAMS ((PTR, unsigned));
|
||||
extern void free PARAMS ((PTR));
|
||||
#endif
|
||||
|
||||
#include "fopen-same.h"
|
||||
|
||||
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
|
||||
#ifndef offsetof
|
||||
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
|
||||
#endif
|
||||
|
@ -10,7 +10,7 @@
|
||||
#include <string.h>
|
||||
#include <sys/file.h>
|
||||
|
||||
#ifndef O_ACCMODE
|
||||
#ifndef O_ACCMODE
|
||||
#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
|
||||
#endif
|
||||
#define SEEK_SET 0
|
||||
@ -48,3 +48,8 @@ extern int fputc();
|
||||
extern int unlink();
|
||||
|
||||
#include "fopen-same.h"
|
||||
|
||||
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
|
||||
#ifndef offsetof
|
||||
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
|
||||
#endif
|
||||
|
@ -23,3 +23,8 @@
|
||||
#endif
|
||||
|
||||
#include "fopen-same.h"
|
||||
|
||||
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
|
||||
#ifndef offsetof
|
||||
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
|
||||
#endif
|
||||
|
@ -25,3 +25,8 @@
|
||||
#endif
|
||||
|
||||
#include "fopen-same.h"
|
||||
|
||||
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
|
||||
#ifndef offsetof
|
||||
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
|
||||
#endif
|
||||
|
@ -10,7 +10,7 @@
|
||||
#include <string.h>
|
||||
#include <sys/file.h>
|
||||
|
||||
#ifndef O_ACCMODE
|
||||
#ifndef O_ACCMODE
|
||||
#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
|
||||
#endif
|
||||
#define SEEK_SET 0
|
||||
@ -48,3 +48,8 @@ extern int fputc();
|
||||
extern int unlink();
|
||||
|
||||
#include "fopen-same.h"
|
||||
|
||||
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
|
||||
#ifndef offsetof
|
||||
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
|
||||
#endif
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include <stddef.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
@ -8,7 +9,7 @@
|
||||
#include <sys/file.h>
|
||||
#include <stdlib.h> /* for malloc() */
|
||||
|
||||
#ifndef O_ACCMODE
|
||||
#ifndef O_ACCMODE
|
||||
#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
|
||||
#endif
|
||||
#define SEEK_SET 0
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include <string.h>
|
||||
#include <sys/file.h>
|
||||
|
||||
#ifndef O_ACCMODE
|
||||
#ifndef O_ACCMODE
|
||||
#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
|
||||
#endif
|
||||
|
||||
@ -18,3 +18,8 @@ extern char *malloc();
|
||||
extern void free();
|
||||
|
||||
#include "fopen-same.h"
|
||||
|
||||
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
|
||||
#ifndef offsetof
|
||||
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
|
||||
#endif
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include "hosts/sysv4.h"
|
||||
|
||||
#ifndef __GNUC__
|
||||
#ifndef __GNUC__
|
||||
#include <alloca.h>
|
||||
#endif
|
||||
/* That's all... */
|
||||
|
@ -1,5 +1,6 @@
|
||||
/* Host definition file for Sun-4 running with gcc, using "long long"
|
||||
for addresses, to handle 64-bit target systems. */
|
||||
#include <stddef.h>
|
||||
#include <ansidecl.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
@ -10,7 +11,7 @@
|
||||
#include <string.h>
|
||||
#include <sys/file.h>
|
||||
#include <alloca.h>
|
||||
#ifndef O_ACCMODE
|
||||
#ifndef O_ACCMODE
|
||||
#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
|
||||
#endif
|
||||
#define SEEK_SET 0
|
||||
@ -32,12 +33,12 @@ extern void bcopy PARAMS ((char*, char*, int));
|
||||
extern int bcmp PARAMS ((char *, char *, int));
|
||||
extern void bzero PARAMS ((char *, int));
|
||||
extern PTR memset PARAMS ((PTR, int, unsigned int));
|
||||
#ifndef DONTDECLARE_MALLOC
|
||||
#ifndef DONTDECLARE_MALLOC
|
||||
extern PTR malloc PARAMS ((unsigned));
|
||||
extern PTR realloc PARAMS ((PTR, unsigned));
|
||||
#endif
|
||||
|
||||
#ifndef __GNUC__
|
||||
#ifndef __GNUC__
|
||||
PTR memcpy PARAMS ((PTR, CONST PTR, unsigned int));
|
||||
#else
|
||||
/* char * memcpy PARAMS ((char *, CONST char *, unsigned int)); */
|
||||
@ -99,7 +100,7 @@ typedef struct {
|
||||
#endif
|
||||
|
||||
#define BYTES_IN_PRINTF_INT 4
|
||||
#ifndef __GNUC__
|
||||
#ifndef __GNUC__
|
||||
#define uint64_typeLOW(x) (unsigned long)(((x).low))
|
||||
#define uint64_typeHIGH(x) (unsigned long)(((x).high))
|
||||
#else
|
||||
|
@ -1,4 +1,4 @@
|
||||
#ifndef hosts_std_host_H
|
||||
#ifndef hosts_std_host_H
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
@ -8,13 +8,13 @@
|
||||
#include <string.h>
|
||||
#include <sys/file.h>
|
||||
|
||||
#ifndef O_ACCMODE
|
||||
#ifndef O_ACCMODE
|
||||
#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
|
||||
#endif
|
||||
#ifndef SEEK_SET
|
||||
#ifndef SEEK_SET
|
||||
#define SEEK_SET 0
|
||||
#endif
|
||||
#ifndef SEEK_CUR
|
||||
#ifndef SEEK_CUR
|
||||
#define SEEK_CUR 1
|
||||
#endif
|
||||
#ifdef STDC_HEADERS
|
||||
@ -46,12 +46,12 @@ extern int getuid ();
|
||||
extern int getgid ();
|
||||
extern int rename ();
|
||||
extern void perror ();
|
||||
#ifndef DONTDECLARE_MALLOC
|
||||
#ifndef DONTDECLARE_MALLOC
|
||||
extern PTR malloc ();
|
||||
extern PTR realloc ();
|
||||
#endif
|
||||
|
||||
#ifndef __GNUC__
|
||||
#ifndef __GNUC__
|
||||
extern PTR memcpy ();
|
||||
#else
|
||||
/* char * memcpy (); */
|
||||
@ -85,15 +85,23 @@ extern int fputc();
|
||||
extern int unlink();
|
||||
#endif /* STDC_HEADERS */
|
||||
|
||||
#ifndef BYTES_IN_PRINTF_INT
|
||||
#ifndef BYTES_IN_PRINTF_INT
|
||||
#define BYTES_IN_PRINTF_INT 4
|
||||
#endif
|
||||
|
||||
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
|
||||
#ifndef offsetof
|
||||
#ifndef offsetof
|
||||
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
|
||||
#endif
|
||||
|
||||
#include "fopen-same.h"
|
||||
#define hosts_std_host_H
|
||||
#endif
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#ifndef offsetof
|
||||
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
|
||||
#endif
|
||||
#endif /* STDC_HEADERS */
|
||||
|
@ -10,7 +10,7 @@
|
||||
#include <string.h>
|
||||
#include <sys/file.h>
|
||||
|
||||
#ifndef O_ACCMODE
|
||||
#ifndef O_ACCMODE
|
||||
#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
|
||||
#endif
|
||||
#define SEEK_SET 0
|
||||
@ -48,3 +48,8 @@ extern int fputc();
|
||||
extern int unlink();
|
||||
|
||||
#include "fopen-same.h"
|
||||
|
||||
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
|
||||
#ifndef offsetof
|
||||
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
|
||||
#endif
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
#include <sys/file.h>
|
||||
#ifndef O_ACCMODE
|
||||
#ifndef O_ACCMODE
|
||||
#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
|
||||
#endif
|
||||
#define SEEK_SET 0
|
||||
@ -36,7 +36,7 @@ extern int chmod();
|
||||
extern int fstat();
|
||||
extern int stat();
|
||||
extern int strtol();
|
||||
#ifndef DONTDECLARE_MALLOC
|
||||
#ifndef DONTDECLARE_MALLOC
|
||||
extern PTR malloc PARAMS ((unsigned));
|
||||
extern PTR realloc PARAMS ((PTR, unsigned));
|
||||
#endif
|
||||
@ -54,3 +54,8 @@ extern int unlink();
|
||||
|
||||
|
||||
#include "fopen-same.h"
|
||||
|
||||
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
|
||||
#ifndef offsetof
|
||||
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
|
||||
#endif
|
||||
|
@ -1,5 +1,6 @@
|
||||
/* System V Release 4 Unix host system */
|
||||
|
||||
#include <stddef.h>
|
||||
#include <ansidecl.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
@ -11,7 +12,7 @@
|
||||
#include <string.h>
|
||||
#include <sys/file.h>
|
||||
|
||||
#ifndef O_ACCMODE
|
||||
#ifndef O_ACCMODE
|
||||
#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
|
||||
#endif
|
||||
#define SEEK_SET 0
|
||||
|
@ -10,7 +10,7 @@
|
||||
#define SEEK_SET 0
|
||||
#define SEEK_CUR 1
|
||||
|
||||
#ifndef O_ACCMODE
|
||||
#ifndef O_ACCMODE
|
||||
#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
|
||||
#endif
|
||||
|
||||
@ -18,3 +18,8 @@ extern char *malloc();
|
||||
extern void free();
|
||||
|
||||
#include "fopen-same.h"
|
||||
|
||||
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
|
||||
#ifndef offsetof
|
||||
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
|
||||
#endif
|
||||
|
@ -9,11 +9,11 @@
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
#include <sys/file.h>
|
||||
#ifndef O_ACCMODE
|
||||
#ifndef O_ACCMODE
|
||||
#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
|
||||
#endif
|
||||
|
||||
#ifndef DONTDECLARE_MALLOC
|
||||
#ifndef DONTDECLARE_MALLOC
|
||||
extern PTR malloc PARAMS ((unsigned));
|
||||
extern PTR realloc PARAMS ((PTR, unsigned));
|
||||
#endif
|
||||
@ -26,3 +26,8 @@ extern int strtol();
|
||||
#define NO_STDARG 1
|
||||
|
||||
#include "fopen-same.h"
|
||||
|
||||
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
|
||||
#ifndef offsetof
|
||||
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user