diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2012-12-31 20:59:07 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2012-12-31 20:59:07 +0400 |
commit | afff7c885127f9098532051bb239a7ffc9f70d91 (patch) | |
tree | 91fe25391ed30b75178875436e1cf5a418738c14 | |
parent | ff54ee6788504481c2dcb1cb8a18b02c236f770a (diff) | |
download | cdrkit-afff7c885127f9098532051bb239a7ffc9f70d91.tar.gz |
Define __THROW if not defined
-rw-r--r-- | debian/patches/glibc-ism.patch | 39 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 40 insertions, 0 deletions
diff --git a/debian/patches/glibc-ism.patch b/debian/patches/glibc-ism.patch new file mode 100644 index 0000000..64f1a60 --- /dev/null +++ b/debian/patches/glibc-ism.patch @@ -0,0 +1,39 @@ +Index: cdrkit/genisoimage/sha256.h +=================================================================== +--- cdrkit.orig/genisoimage/sha256.h 2012-12-31 20:40:00.503116203 +0400 ++++ cdrkit/genisoimage/sha256.h 2012-12-31 20:43:06.242272165 +0400 +@@ -29,6 +29,14 @@ + #include <stdint.h> + #include <stdio.h> + ++#ifndef __THROW ++# ifdef __GNUC__ ++# define __THROW __attribute__ ((__nothrow__)) ++# else ++# define __THROW /* nothing */ ++# endif ++#endif ++ + + /* Structure to save state of computation between the single steps. */ + struct sha256_ctx +Index: cdrkit/genisoimage/sha512.h +=================================================================== +--- cdrkit.orig/genisoimage/sha512.h 2012-12-31 05:04:44.257026487 +0400 ++++ cdrkit/genisoimage/sha512.h 2012-12-31 20:44:09.816509406 +0400 +@@ -29,6 +29,15 @@ + #include <stdint.h> + #include <stdio.h> + ++#ifndef __THROW ++# ifdef __GNUC__ ++# define __THROW __attribute__ ((__nothrow__)) ++# else ++# define __THROW /* nothing */ ++# endif ++#endif ++ ++ + + /* Structure to save state of computation between the single steps. */ + struct sha512_ctx diff --git a/debian/patches/series b/debian/patches/series index db11265..86f64b9 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ AddNetworkBits.cmake-libnsl.patch libusal-libvolmgt-is-stub.patch +glibc-ism.patch |