[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 09/16] stat: avoid 'static inline'
From: |
Paul Eggert |
Subject: |
[PATCH 09/16] stat: avoid 'static inline' |
Date: |
Sat, 18 Aug 2012 17:54:03 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120714 Thunderbird/14.0 |
* lib/stat.c (orig_stat): Now static, not static inline.
* m4/stat.m4 (gl_PREREQ_STAT): Do not require AC_C_INLINE.
---
ChangeLog | 4 ++++
lib/stat.c | 2 +-
m4/stat.m4 | 8 ++------
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index be59365..9095547 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2012-08-18 Paul Eggert <address@hidden>
+ stat: avoid 'static inline'
+ * lib/stat.c (orig_stat): Now static, not static inline.
+ * m4/stat.m4 (gl_PREREQ_STAT): Do not require AC_C_INLINE.
+
crypto/sha512: avoid 'static inline'
* lib/sha512.c (set_uint64): Now static, not static inline.
* m4/sha512.m4 (gl_SHA512): Do not require AC_C_INLINE.
diff --git a/lib/stat.c b/lib/stat.c
index 7599540..c0bcb88 100644
--- a/lib/stat.c
+++ b/lib/stat.c
@@ -42,7 +42,7 @@
# endif
#endif
-static inline int
+static int
orig_stat (const char *filename, struct stat *buf)
{
return stat (filename, buf);
diff --git a/m4/stat.m4 b/m4/stat.m4
index a8b79f5..0fd117e 100644
--- a/m4/stat.m4
+++ b/m4/stat.m4
@@ -1,4 +1,4 @@
-# serial 10
+# serial 11
# Copyright (C) 2009-2012 Free Software Foundation, Inc.
#
@@ -68,8 +68,4 @@ AC_DEFUN([gl_FUNC_STAT],
])
# Prerequisites of lib/stat.c.
-AC_DEFUN([gl_PREREQ_STAT],
-[
- AC_REQUIRE([AC_C_INLINE])
- :
-])
+AC_DEFUN([gl_PREREQ_STAT], [:])
--
1.7.6.5
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH 09/16] stat: avoid 'static inline',
Paul Eggert <=