summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/compat/strsignal.c50
-rw-r--r--lib/dpkg/buffer.c2
-rw-r--r--lib/dpkg/compress.c2
3 files changed, 52 insertions, 2 deletions
diff --git a/lib/compat/strsignal.c b/lib/compat/strsignal.c
index 66ed0c39d..3cc22f237 100644
--- a/lib/compat/strsignal.c
+++ b/lib/compat/strsignal.c
@@ -29,6 +29,55 @@
#define _(str) gettext(str)
#if !HAVE_DECL_SYS_SIGLIST
+# ifdef __sun__
+/* sys/iso/signal_iso.h */
+const char *const sys_siglist[] = {
+ NULL , /* 0 */
+ "SIGHUP" , /* 1 */
+ "SIGINT" , /* 2 */
+ "SIGQUIT" , /* 3 */
+ "SIGILL" , /* 4 */
+ "SIGTRAP" , /* 5 */
+ "SIGIOT" , /* 6 */
+ "SIGABRT" , /* 6 */
+ "SIGEMT" , /* 7 */
+ "SIGFPE" , /* 8 */
+ "SIGKILL" , /* 9 */
+ "SIGBUS" , /* 10 */
+ "SIGSEGV" , /* 11 */
+ "SIGSYS" , /* 12 */
+ "SIGPIPE" , /* 13 */
+ "SIGALRM" , /* 14 */
+ "SIGTERM" , /* 15 */
+ "SIGUSR1" , /* 16 */
+ "SIGUSR2" , /* 17 */
+ "SIGCLD" , /* 18 */
+ "SIGCHLD" , /* 18 */
+ "SIGPWR" , /* 19 */
+ "SIGWINCH" , /* 20 */
+ "SIGURG" , /* 21 */
+ "SIGPOLL" , /* 22 */
+ "SIGSTOP" , /* 23 */
+ "SIGTSTP" , /* 24 */
+ "SIGCONT" , /* 25 */
+ "SIGTTIN" , /* 26 */
+ "SIGTTOU" , /* 27 */
+ "SIGVTALRM" , /* 28 */
+ "SIGPROF" , /* 29 */
+ "SIGXCPU" , /* 30 */
+ "SIGXFSZ" , /* 31 */
+ "SIGWAITING" , /* 32 */
+ "SIGLWP" , /* 33 */
+ "SIGFREEZE" , /* 34 */
+ "SIGTHAW" , /* 35 */
+ "SIGCANCEL" , /* 36 */
+ "SIGLOST" , /* 37 */
+ "SIGXRES" , /* 38 */
+ "SIGJVM1" , /* 39 */
+ "SIGJVM2" , /* 40 */
+ "SIGINFO" /* 41 */
+};
+# else
const char *const sys_siglist[] = {
NULL, /* 0 */
"SIGHUP", /* 1 */
@@ -54,6 +103,7 @@ const char *const sys_siglist[] = {
"SIGTTIN", /* 21 */
"SIGTTOU", /* 22 */
};
+# endif // __sun__
# define COMPAT_NSIGLIST (int)(sizeof(sys_siglist) / sizeof(sys_siglist[0]))
#else
# ifndef NSIG
diff --git a/lib/dpkg/buffer.c b/lib/dpkg/buffer.c
index a4d6527d7..9faa12d93 100644
--- a/lib/dpkg/buffer.c
+++ b/lib/dpkg/buffer.c
@@ -26,7 +26,7 @@
#include <sys/types.h>
#include <errno.h>
-#include <md5.h>
+#include <compat/md5.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
diff --git a/lib/dpkg/compress.c b/lib/dpkg/compress.c
index 44075cdb6..8958ad3cc 100644
--- a/lib/dpkg/compress.c
+++ b/lib/dpkg/compress.c
@@ -654,7 +654,7 @@ compress_xz(int fd_in, int fd_out, struct compress_params *params, const char *d
static const struct compressor compressor_xz = {
.name = "xz",
.extension = ".xz",
- .default_level = 6,
+ .default_level = 9,
.fixup_params = fixup_none_params,
.compress = compress_xz,
.decompress = decompress_xz,