summaryrefslogtreecommitdiff
path: root/pkg/sndio
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2022-09-08 12:05:12 -0700
committerMichael Forney <mforney@mforney.org>2022-09-08 12:05:20 -0700
commit59e17d3fce4dfb8e036f4871a435a442964ee857 (patch)
tree5cbab5a2216b111562f7533bcd84d7ee49a35719 /pkg/sndio
parentd1eae8f1ef0cdff5ee73ec7f710926ea4c3f8c7c (diff)
sndio: Use issetugid, strlcat, and strlcpy from libc
Diffstat (limited to 'pkg/sndio')
-rw-r--r--pkg/sndio/config.h3
-rw-r--r--pkg/sndio/gen.lua4
2 files changed, 5 insertions, 2 deletions
diff --git a/pkg/sndio/config.h b/pkg/sndio/config.h
index 49c2f705..d65f5053 100644
--- a/pkg/sndio/config.h
+++ b/pkg/sndio/config.h
@@ -1,2 +1,5 @@
+#define HAVE_ISSETUGID 1
+#define HAVE_STRLCAT 1
+#define HAVE_STRLCPY 1
#define HAVE_CLOCK_GETTIME 1
#define HAVE_SOCK_CLOEXEC 1
diff --git a/pkg/sndio/gen.lua b/pkg/sndio/gen.lua
index f03800e1..9d04ebba 100644
--- a/pkg/sndio/gen.lua
+++ b/pkg/sndio/gen.lua
@@ -1,6 +1,6 @@
cflags{
'-std=c99', '-Wall', '-Wpedantic',
- '-Wno-format-truncation',
+ '-Wno-format-truncation', '-Wno-maybe-uninitialized',
'-D _GNU_SOURCE',
'-I $srcdir/libsndio',
'-I $srcdir/bsd-compat',
@@ -21,7 +21,7 @@ local objs = objects[[
sio_aucat.c
sioctl.c sioctl_aucat.c
)
- bsd-compat/(issetugid.c strlcat.c strlcpy.c strtonum.c clock_gettime.c)
+ bsd-compat/(getpeereid.c issetugid.c strlcat.c strlcpy.c strtonum.c clock_gettime.c)
$builddir/pkg/tinyalsa/libtinyalsa.a
]]