diff options
| author | Paul Eggert | 2011-03-13 10:39:04 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-03-13 10:39:04 -0700 |
| commit | 1ef6de0565b2d11481f1f663742d2c0d79e8eb97 (patch) | |
| tree | bddc8d4c8cc5f904a7ba2e724371309717552678 /lib/sys_stat.in.h | |
| parent | 3eca4629203c3038f04db312999ca32d8e292e50 (diff) | |
| download | emacs-1ef6de0565b2d11481f1f663742d2c0d79e8eb97.tar.gz emacs-1ef6de0565b2d11481f1f663742d2c0d79e8eb97.zip | |
Update for gnulib, adding Solaris 9+10 fixes.
Diffstat (limited to 'lib/sys_stat.in.h')
| -rw-r--r-- | lib/sys_stat.in.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/lib/sys_stat.in.h b/lib/sys_stat.in.h index 61cdcc53928..13fae7b6703 100644 --- a/lib/sys_stat.in.h +++ b/lib/sys_stat.in.h | |||
| @@ -355,7 +355,11 @@ _GL_WARN_ON_USE (fstatat, "fstatat is not portable - " | |||
| 355 | 355 | ||
| 356 | 356 | ||
| 357 | #if @GNULIB_FUTIMENS@ | 357 | #if @GNULIB_FUTIMENS@ |
| 358 | # if @REPLACE_FUTIMENS@ | 358 | /* Use the rpl_ prefix also on Solaris <= 9, because on Solaris 9 our futimens |
| 359 | implementation relies on futimesat, which on Solaris 10 makes an invocation | ||
| 360 | to futimens that is meant to invoke the libc's futimens(), not gnulib's | ||
| 361 | futimens(). */ | ||
| 362 | # if @REPLACE_FUTIMENS@ || (!@HAVE_FUTIMENS@ && defined __sun) | ||
| 359 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | 363 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| 360 | # undef futimens | 364 | # undef futimens |
| 361 | # define futimens rpl_futimens | 365 | # define futimens rpl_futimens |
| @@ -368,7 +372,9 @@ _GL_FUNCDECL_SYS (futimens, int, (int fd, struct timespec const times[2])); | |||
| 368 | # endif | 372 | # endif |
| 369 | _GL_CXXALIAS_SYS (futimens, int, (int fd, struct timespec const times[2])); | 373 | _GL_CXXALIAS_SYS (futimens, int, (int fd, struct timespec const times[2])); |
| 370 | # endif | 374 | # endif |
| 375 | # if @HAVE_FUTIMENS@ | ||
| 371 | _GL_CXXALIASWARN (futimens); | 376 | _GL_CXXALIASWARN (futimens); |
| 377 | # endif | ||
| 372 | #elif defined GNULIB_POSIXCHECK | 378 | #elif defined GNULIB_POSIXCHECK |
| 373 | # undef futimens | 379 | # undef futimens |
| 374 | # if HAVE_RAW_DECL_FUTIMENS | 380 | # if HAVE_RAW_DECL_FUTIMENS |
| @@ -612,7 +618,11 @@ _GL_WARN_ON_USE (stat, "stat is unportable - " | |||
| 612 | 618 | ||
| 613 | 619 | ||
| 614 | #if @GNULIB_UTIMENSAT@ | 620 | #if @GNULIB_UTIMENSAT@ |
| 615 | # if @REPLACE_UTIMENSAT@ | 621 | /* Use the rpl_ prefix also on Solaris <= 9, because on Solaris 9 our utimensat |
| 622 | implementation relies on futimesat, which on Solaris 10 makes an invocation | ||
| 623 | to utimensat that is meant to invoke the libc's utimensat(), not gnulib's | ||
| 624 | utimensat(). */ | ||
| 625 | # if @REPLACE_UTIMENSAT@ || (!@HAVE_UTIMENSAT@ && defined __sun) | ||
| 616 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | 626 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| 617 | # undef utimensat | 627 | # undef utimensat |
| 618 | # define utimensat rpl_utimensat | 628 | # define utimensat rpl_utimensat |
| @@ -631,7 +641,9 @@ _GL_FUNCDECL_SYS (utimensat, int, (int fd, char const *name, | |||
| 631 | _GL_CXXALIAS_SYS (utimensat, int, (int fd, char const *name, | 641 | _GL_CXXALIAS_SYS (utimensat, int, (int fd, char const *name, |
| 632 | struct timespec const times[2], int flag)); | 642 | struct timespec const times[2], int flag)); |
| 633 | # endif | 643 | # endif |
| 644 | # if @HAVE_UTIMENSAT@ | ||
| 634 | _GL_CXXALIASWARN (utimensat); | 645 | _GL_CXXALIASWARN (utimensat); |
| 646 | # endif | ||
| 635 | #elif defined GNULIB_POSIXCHECK | 647 | #elif defined GNULIB_POSIXCHECK |
| 636 | # undef utimensat | 648 | # undef utimensat |
| 637 | # if HAVE_RAW_DECL_UTIMENSAT | 649 | # if HAVE_RAW_DECL_UTIMENSAT |