diff options
author | rmanfredi <rmanfredi@2592e710-e01b-42a5-8df0-11608a6cc53d> | 2015-04-19 14:26:42 +0000 |
---|---|---|
committer | rmanfredi <rmanfredi@2592e710-e01b-42a5-8df0-11608a6cc53d> | 2015-04-19 14:26:42 +0000 |
commit | 86eaf7a0609ca060dba9e79180bc84a7fbac2bef (patch) | |
tree | 295183344bfc3f9d88f733c6378d9087cd4f88fd /mcon/U | |
parent | f36cfa6b479ea3a55246622b5c0cfc38b9f1addb (diff) |
Blindly include <fcntl.h> for openat() and fstatat() tests.
git-svn-id: svn://svn.code.sf.net/p/dist/code/trunk/dist@192 2592e710-e01b-42a5-8df0-11608a6cc53d
Diffstat (limited to 'mcon/U')
-rw-r--r-- | mcon/U/d_fstatat.U | 5 | ||||
-rw-r--r-- | mcon/U/d_openat.U | 5 |
2 files changed, 2 insertions, 8 deletions
diff --git a/mcon/U/d_fstatat.U b/mcon/U/d_fstatat.U index b5af396..55412f7 100644 --- a/mcon/U/d_fstatat.U +++ b/mcon/U/d_fstatat.U @@ -7,7 +7,7 @@ ?RCS: that same Artistic License; a copy of which may be found at the root ?RCS: of the source tree for dist 4.0. ?RCS: -?MAKE:d_fstatat: Trylink cat i_fcntl i_sysstat +?MAKE:d_fstatat: Trylink cat i_sysstat ?MAKE: -pick add $@ %< ?S:d_fstatat: ?S: This variable conditionally defines HAS_FSTATAT if fstatat() is @@ -25,10 +25,7 @@ : see if fstatat exists $cat >try.c <<EOC #$i_sysstat I_SYS_STAT -#$i_fcntl I_FCNTL -#ifdef I_FCNTL #include <fcntl.h> /* AT_* constants */ -#endif #ifdef I_SYS_STAT #include <sys/stat.h> #endif diff --git a/mcon/U/d_openat.U b/mcon/U/d_openat.U index d7f8269..8565ee5 100644 --- a/mcon/U/d_openat.U +++ b/mcon/U/d_openat.U @@ -7,7 +7,7 @@ ?RCS: that same Artistic License; a copy of which may be found at the root ?RCS: of the source tree for dist 4.0. ?RCS: -?MAKE:d_openat: Trylink cat i_fcntl +?MAKE:d_openat: Trylink cat ?MAKE: -pick add $@ %< ?S:d_openat: ?S: This variable conditionally defines HAS_OPENAT if openat() is @@ -24,10 +24,7 @@ ?LINT:set d_openat : see if openat exists $cat >try.c <<EOC -#$i_fcntl I_FCNTL -#ifdef I_FCNTL #include <fcntl.h> /* AT_* constants */ -#endif int main(void) { static int ret; |