ports/graphics/sane-backends/patches/patch-backend_snapscan-mutex_c

15 lines
439 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/snapscan-mutex.c
--- backend/snapscan-mutex.c.orig
+++ backend/snapscan-mutex.c
@@ -67,6 +67,7 @@ static void snapscani_mutex_unlock(snapscan_mutex_t* a
#elif defined USE_PTHREAD || defined HAVE_OS2_H
+#include <errno.h>
#include <pthread.h>
#define snapscan_mutex_t pthread_mutex_t