diff options
author | Michael Gilbert <mgilbert@debian.org> | 2012-12-16 01:04:52 +0000 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-05-03 21:08:44 +0400 |
commit | 76c556de8989df3905e066f13cd91190093402ff (patch) | |
tree | f417353f49aa7ad35745c6cdd6148f1651b0a903 /debian/patches/no_EBADE.patch | |
parent | 1058def8e7827e56ce4a70afb4aeacb5dc44148f (diff) | |
download | oss4-debian/4.2-build2006-2+deb7u1.tar.gz |
Imported Debian patch 4.2-build2006-2+deb7u1debian/4.2-build2006-2+deb7u1
Diffstat (limited to 'debian/patches/no_EBADE.patch')
-rw-r--r-- | debian/patches/no_EBADE.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/debian/patches/no_EBADE.patch b/debian/patches/no_EBADE.patch new file mode 100644 index 0000000..99d85c8 --- /dev/null +++ b/debian/patches/no_EBADE.patch @@ -0,0 +1,35 @@ +GNU/Hurd doesn't have EBADE. Report EGRATUITOUS there for now (or EIO on any +other system which doesn't have EBADE either). + +Index: oss4-4.2-build2004/lib/libsalsa/seq_output.c +=================================================================== +--- oss4-4.2-build2004.orig/lib/libsalsa/seq_output.c 2011-06-14 11:33:24.000000000 -0500 ++++ oss4-4.2-build2004/lib/libsalsa/seq_output.c 2011-06-14 11:33:24.000000000 -0500 +@@ -40,7 +40,13 @@ + if (l == -1) + return -errno; + ++#ifdef EBADE + return -EBADE; /* Randomly selected error */ ++#elif defined(EGRATUITOUS) ++ return -EGRATUITOUS; /* Randomly selected error */ ++#else ++ return -EIO; /* Randomly selected error */ ++#endif + } + + return 0; +@@ -65,7 +71,13 @@ + if (l == -1) + return -errno; + ++#ifdef EBADE + return -EBADE; /* Randomly selected error */ ++#elif defined(EGRATUITOUS) ++ return -EGRATUITOUS; /* Randomly selected error */ ++#else ++ return -EIO; /* Randomly selected error */ ++#endif + } + + return 0; |