From b71889137b0ef1e07ba6f52dbbf2b09c91d23f50 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 17 Mar 2000 03:24:04 +0000 Subject: [PATCH] Define off_t and mode_t. --- misc/sys/mman.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/misc/sys/mman.h b/misc/sys/mman.h index 8db82c87c65..f840caf3561 100644 --- a/misc/sys/mman.h +++ b/misc/sys/mman.h @@ -1,5 +1,5 @@ /* Definitions for BSD-style memory management. - Copyright (C) 1994, 95, 96, 97, 98, 99 Free Software Foundation, Inc. + Copyright (C) 1994-1999, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -25,6 +25,20 @@ #define __need_size_t #include +#ifndef off_t +# ifndef __USE_FILE_OFFSET64 +typedef __off_t off_t; +# else +typedef __off64_t off_t; +# endif +# define off_t off_t +#endif + +#ifndef mode_t +typedef __mode_t mode_t; +# define mode_t mode_t +#endif + #include /* Return value of `mmap' in case of an error. */ -- 2.47.2