diff options
author | 2013-11-12 06:09:48 +0000 | |
---|---|---|
committer | 2013-11-12 06:09:48 +0000 | |
commit | 35d50e37c6a86fa2a0d7df2bf7fb22b25ce1eba9 (patch) | |
tree | e06a918583a6e99b18099c686a0505d3e248b31c /lib/libc/gen/shm_open.c | |
parent | pull in stdlib.h as required (diff) | |
download | wireguard-openbsd-35d50e37c6a86fa2a0d7df2bf7fb22b25ce1eba9.tar.xz wireguard-openbsd-35d50e37c6a86fa2a0d7df2bf7fb22b25ce1eba9.zip |
pull in missing includes (math.h, unistd.h, stdlib.h) needed for
prototypes
Diffstat (limited to 'lib/libc/gen/shm_open.c')
-rw-r--r-- | lib/libc/gen/shm_open.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/gen/shm_open.c b/lib/libc/gen/shm_open.c index ccbe82a6c70..4e15bfa6689 100644 --- a/lib/libc/gen/shm_open.c +++ b/lib/libc/gen/shm_open.c @@ -1,4 +1,4 @@ -/* $OpenBSD: shm_open.c,v 1.3 2013/10/25 19:42:18 tedu Exp $ */ +/* $OpenBSD: shm_open.c,v 1.4 2013/11/12 06:09:48 deraadt Exp $ */ /* * Copyright (c) 2013 Ted Unangst <tedu@openbsd.org> * @@ -25,6 +25,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <unistd.h> /* SHA256_DIGEST_STRING_LENGTH includes nul */ /* "/tmp/" + sha256 + ".shm" */ |