ports/graphics/sane-backends/patches/patch-backend_pint_c

16 lines
393 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
errno.h header is required now that errno is a per-thread variable.
"undefined symbol 'errno'" at runtime with dlopen()'d modules.
Index: backend/pint.c
--- backend/pint.c.orig
+++ backend/pint.c
@@ -42,7 +42,7 @@
#include <limits.h>
#include <stdlib.h>
#include <string.h>
-extern int errno;
+#include <errno.h>
#include "../include/sane/sane.h"
#include "../include/sane/saneopts.h"