]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Adapt to bits/stat.h changes.
authorRoland McGrath <roland@hack.frob.com>
Wed, 17 Dec 2014 18:33:55 +0000 (10:33 -0800)
committerRoland McGrath <roland@hack.frob.com>
Wed, 17 Dec 2014 18:33:55 +0000 (10:33 -0800)
sysdeps/nacl/xstatconv.h

index 1bfbb73de2f11814c34332e7a279e7c2a6b68629..2567242c754e613ab54fbed64ad95462c2076032 100644 (file)
@@ -25,19 +25,8 @@ struct stat;
 /* stat.h uses nacl_abi_off_t, but irt.h defines only nacl_irt_off_t.  */
 typedef nacl_irt_off_t nacl_abi_off_t;
 
-/* We use this header to define struct nacl_abi_stat.  But we must avoid
-   its excess declarations, and defining these names away is (marginally)
-   cleaner than #undef'ing __native_client__.  */
-#undef  stat
-#define stat    __avoid_nacl_stat
-#undef  fstat
-#define fstat   __avoid_nacl_fstat
-#undef  lstat
-#define lstat   __avoid_nacl_lstat
-#include <native_client/src/trusted/service_runtime/include/sys/stat.h>
-#undef  stat
-#undef  fstat
-#undef  lstat
+/* We use this header to define struct nacl_abi_stat.  */
+#include <native_client/src/trusted/service_runtime/include/bits/stat.h>
 
 extern int __xstat_conv (int vers, const struct nacl_abi_stat *, void *)
   internal_function attribute_hidden;