blob: 99d85c8d497d554c644a8f204049e81dd40342db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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;
|