summaryrefslogtreecommitdiffhomepage
path: root/auto/mmap
diff options
context:
space:
mode:
Diffstat (limited to 'auto/mmap')
-rw-r--r--auto/mmap8
1 files changed, 4 insertions, 4 deletions
diff --git a/auto/mmap b/auto/mmap
index 8ecdf670..e8ffac78 100644
--- a/auto/mmap
+++ b/auto/mmap
@@ -13,7 +13,7 @@ nxt_feature_libs=
nxt_feature_test="#include <stdlib.h>
#include <sys/mman.h>
- int main() {
+ int main(void) {
if (mmap(NULL, 4096, PROT_READ | PROT_WRITE,
MAP_PRIVATE | MAP_ANON, -1, 0)
== MAP_FAILED)
@@ -35,7 +35,7 @@ if [ $nxt_found = no ]; then
nxt_feature_test="#include <stdlib.h>
#include <sys/mman.h>
- int main() {
+ int main(void) {
if (mmap(NULL, 4096, PROT_READ | PROT_WRITE,
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0)
== MAP_FAILED)
@@ -56,7 +56,7 @@ nxt_feature_libs=
nxt_feature_test="#include <stdlib.h>
#include <sys/mman.h>
- int main() {
+ int main(void) {
if (mmap(NULL, 4096, PROT_READ | PROT_WRITE,
MAP_SHARED | MAP_POPULATE, -1, 0)
== MAP_FAILED)
@@ -76,7 +76,7 @@ nxt_feature_libs=
nxt_feature_test="#include <stdlib.h>
#include <sys/mman.h>
- int main() {
+ int main(void) {
if (mmap(NULL, 4096, PROT_READ | PROT_WRITE,
MAP_PRIVATE | MAP_ANON | MAP_PREFAULT_READ,
-1, 0)