summaryrefslogtreecommitdiff
path: root/debian/patches/add-throw-for-nanosleep.diff
blob: 2000089c0773938eed434f55b4c3d8b61715d320 (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
36
Description: add THROW for nanosleep

This fixes a build failure
 .
 glibc (2.31-2038.3) UNRELEASED; urgency=medium
 .
   [ Arnd Bergmann ]
   * Import https://github.com/lmajewski/y2038_glibc/commits/y2038_edge
   * Force-enable time64
   * rework a few more times
Author: Arnd Bergmann <arnd@arndb.de>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2020-03-05

--- glibc-2.31.orig/time/time.h
+++ glibc-2.31/time/time.h
@@ -311,7 +311,7 @@ extern int __REDIRECT_NTH (clock_settime
    __THROW.  */
 extern int clock_nanosleep (clockid_t __clock_id, int __flags,
 			    const struct timespec *__req,
-			    struct timespec *__rem);
+			    struct timespec *__rem) __THROW;
 
 #ifdef __USE_TIME_BITS64
 # if defined(__REDIRECT_NTH)