File tree Expand file tree Collapse file tree 5 files changed +23
-1
lines changed Expand file tree Collapse file tree 5 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 12
12
/* Define to 1 if you have the `clock_gettime' function. */
13
13
#undef HAVE_CLOCK_GETTIME
14
14
15
+ /* Define to 1 if you have the declaration of `getpagesize', and to 0 if you
16
+ don't. */
17
+ #undef HAVE_DECL_GETPAGESIZE
18
+
15
19
/* Define to 1 if you have the declaration of `strnlen', and to 0 if you
16
20
don't. */
17
21
#undef HAVE_DECL_STRNLEN
Original file line number Diff line number Diff line change @@ -12453,6 +12453,16 @@ fi
12453
12453
cat >> confdefs.h << _ACEOF
12454
12454
#define HAVE_DECL_STRNLEN $ac_have_decl
12455
12455
_ACEOF
12456
+ ac_fn_c_check_decl " $LINENO " " getpagesize" " ac_cv_have_decl_getpagesize" " $ac_includes_default "
12457
+ if test " x$ac_cv_have_decl_getpagesize " = xyes; then :
12458
+ ac_have_decl=1
12459
+ else
12460
+ ac_have_decl=0
12461
+ fi
12462
+
12463
+ cat >> confdefs.h << _ACEOF
12464
+ #define HAVE_DECL_GETPAGESIZE $ac_have_decl
12465
+ _ACEOF
12456
12466
12457
12467
for ac_func in lstat readlink
12458
12468
do :
Original file line number Diff line number Diff line change @@ -383,7 +383,7 @@ if test "$have_fcntl" = "yes"; then
383
383
[ Define to 1 if you have the fcntl function] )
384
384
fi
385
385
386
- AC_CHECK_DECLS ( strnlen )
386
+ AC_CHECK_DECLS ( [ strnlen, getpagesize ] )
387
387
AC_CHECK_FUNCS ( lstat readlink )
388
388
389
389
# Check for getexecname function.
Original file line number Diff line number Diff line change @@ -42,6 +42,10 @@ POSSIBILITY OF SUCH DAMAGE. */
42
42
#include "backtrace.h"
43
43
#include "internal.h"
44
44
45
+ #ifndef HAVE_DECL_GETPAGESIZE
46
+ extern int getpagesize (void );
47
+ #endif
48
+
45
49
/* Memory allocation on systems that provide anonymous mmap. This
46
50
permits the backtrace functions to be invoked from a signal
47
51
handler, assuming that mmap is async-signal safe. */
Original file line number Diff line number Diff line change @@ -40,6 +40,10 @@ POSSIBILITY OF SUCH DAMAGE. */
40
40
#include "backtrace.h"
41
41
#include "internal.h"
42
42
43
+ #ifndef HAVE_DECL_GETPAGESIZE
44
+ extern int getpagesize (void );
45
+ #endif
46
+
43
47
#ifndef MAP_FAILED
44
48
#define MAP_FAILED ((void *)-1)
45
49
#endif
You can’t perform that action at this time.
0 commit comments