summaryrefslogtreecommitdiff
path: root/src/unistd/confstr.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-23 15:22:33 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-23 15:22:33 -0500
commit1221e834f49adb91eb0b7443a57274f2611459c2 (patch)
tree7afb7ed5a203ddefd5559005af7ec61d801b972e /src/unistd/confstr.c
parentf546f27d1fdb8d2663b2fbb130f53ee32cac90b0 (diff)
compile in current environment
Diffstat (limited to 'src/unistd/confstr.c')
-rw-r--r--src/unistd/confstr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/unistd/confstr.c b/src/unistd/confstr.c
index a0f57b30..0cf00319 100644
--- a/src/unistd/confstr.c
+++ b/src/unistd/confstr.c
@@ -1,13 +1,15 @@
+#include "sys/types.h"
#include <unistd.h>
#include "errno.h"
#include "string.h"
+#include "nonstd/assert.h"
size_t confstr(int name, char *buf, size_t len)
{
char *value = NULL;
if (len > 0) {
- __ASSERT_NONNULL(buf);
+ ASSERT_NONNULL(buf);
}
switch (name) {