void-packages/srcpkgs/sane/patches/musl-sigset_t.patch
Alessio Sergi f85368242c sane: update to 1.0.25
Add option for snmp (off).
Removed cups bdep since cups requirement has been dropped upstream.
2015-11-17 11:16:51 +01:00

24 lines
612 B
Diff

--- include/sane/sanei_backend.h
+++ include/sane/sanei_backend.h
@@ -68,9 +68,11 @@
/* Just enough backwards compatibility that we get by in the backends
without making handstands. */
+#if 0
# ifdef sigset_t
# undef sigset_t
# endif
+#endif
# ifdef sigemptyset
# undef sigemptyset
# endif
@@ -96,7 +98,9 @@
# undef SIG_SETMASK
# endif
+#if 0
# define sigset_t int
+#endif
# define sigemptyset(set) do { *(set) = 0; } while (0)
# define sigfillset(set) do { *(set) = ~0; } while (0)
# define sigaddset(set,signal) do { *(set) |= sigmask (signal); } while (0)