unistd_h: make it easier to avoid sys_types_h
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 4 May 2012 20:05:31 +0000 (13:05 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 4 May 2012 20:06:00 +0000 (13:06 -0700)
commit0918b47b06be41b037be7826c5de04d559026d3e
treed1ddcc348cc8cd31f872d08298a05769b602a62b
parent639607db00b96f33b0e18afa27188456c6ccad0a
unistd_h: make it easier to avoid sys_types_h

This is useful for Emacs, which has its own method of porting to
Windows, and which therefore does not need the sys_types_h module.
* m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
code moved here from gl_SYS_TYPES_H.
* m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
using the code directly.
* m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
gl_SYS_TYPES_H.
* modules/sys_types (Files):
* modules/unistd (Files): Add m4/off_t.m4.
ChangeLog
m4/off_t.m4 [new file with mode: 0644]
m4/sys_types_h.m4
m4/unistd_h.m4
modules/sys_types
modules/unistd