commit 13cd14167c23038863e6c83a8621c5dac43df869
parent 272a7c525a51c12efcb662a9b19804eb3dca960f
Author: bsandro <email@bsandro.tech>
Date: Wed, 16 Jul 2025 23:35:13 +0300
tiny netbsd fixes
Diffstat:
3 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/cli/main.c b/cli/main.c
@@ -19,6 +19,10 @@
#include <sys/syslimits.h>
#endif
+#ifdef __NetBSD__
+#include <sys/syslimits.h>
+#endif
+
#ifdef __linux__
#include <linux/limits.h>
#endif
diff --git a/gui/animation.c b/gui/animation.c
@@ -15,6 +15,10 @@
#include <sys/syslimits.h>
#endif
+#ifdef __NetBSD__
+#include <sys/syslimits.h>
+#endif
+
#ifdef __linux__
#include <linux/limits.h>
#endif
diff --git a/gui/main.c b/gui/main.c
@@ -10,7 +10,9 @@
#define UI_IMPLEMENTATION
#include <stdio.h>
+#ifndef __NetBSD__
#include <sys/prctl.h>
+#endif
#include "webp/decode.h"
#include "webp/encode.h"
#include "webp/demux.h"
@@ -21,6 +23,10 @@
#include <sys/syslimits.h>
#endif
+#ifdef __NetBSD__
+#include <sys/syslimits.h>
+#endif
+
#ifdef __linux__
#include <linux/limits.h>
#endif
@@ -42,7 +48,9 @@ int main(int argc, const char **argv) {
int WinMain(HINSTANCE instance, HINSTANCE previousInstance, LPSTR commandLine, int showCommand) {
#endif
// just some silly stuff, always wanted to try that
+#ifndef __NetBSD__
prctl(PR_SET_NAME, "webp-anim-to-spritesheet");
+#endif
atexit(print_webp_version);
UIInitialise();
UIWindow *win = MainWindowCreate("emote2ss", WIN_WIDTH, WIN_HEIGHT);