Large File Support for native Windows platforms.
[gnulib.git] / m4 / sys_types_h.m4
1 # sys_types_h.m4 serial 3
2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
6
7 AC_DEFUN([gl_SYS_TYPES_H],
8 [
9   AC_REQUIRE([gl_SYS_TYPES_H_DEFAULTS])
10   gl_NEXT_HEADERS([sys/types.h])
11
12   dnl Ensure the type pid_t gets defined.
13   AC_REQUIRE([AC_TYPE_PID_T])
14
15   dnl Ensure the type mode_t gets defined.
16   AC_REQUIRE([AC_TYPE_MODE_T])
17
18   dnl Whether to override the 'off_t' type.
19   m4_ifdef([gl_LARGEFILE], [
20     AC_REQUIRE([gl_LARGEFILE])
21   ], [
22     WINDOWS_64_BIT_OFF_T=0
23   ])
24   AC_SUBST([WINDOWS_64_BIT_OFF_T])
25 ])
26
27 AC_DEFUN([gl_SYS_TYPES_H_DEFAULTS],
28 [
29 ])