diff options
author | Matteo Bernardini | 2020-11-07 10:39:25 +0100 |
---|---|---|
committer | Matteo Bernardini | 2020-11-07 10:39:25 +0100 |
commit | 69c0dd02dd77d45035c7458bbb3507bfd659bc47 (patch) | |
tree | 67e0545ccec095bdced5501bd94b7a7c8c6ac70a /libraries/libunicap | |
parent | 47e77153bd7179d5081b4608265a62a12059e36f (diff) | |
download | slackbuilds-current-20201107.1.tar.gz |
20201107.1 global branch merge.current-20201107.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/libunicap')
-rw-r--r-- | libraries/libunicap/gcc10.patch | 25 | ||||
-rw-r--r-- | libraries/libunicap/libunicap.SlackBuild | 2 |
2 files changed, 27 insertions, 0 deletions
diff --git a/libraries/libunicap/gcc10.patch b/libraries/libunicap/gcc10.patch new file mode 100644 index 0000000000..638f4eb8d9 --- /dev/null +++ b/libraries/libunicap/gcc10.patch @@ -0,0 +1,25 @@ +Patch by Robert Scheck <robert@fedoraproject.org> for libunicap <= 0.9.12 to declare the +struct as extern in header files (https://gcc.gnu.org/gcc-10/porting_to.html). + +--- libunicap-0.9.12/common/queue.h 2010-01-17 08:49:29.000000000 +0100 ++++ libunicap-0.9.12/common/queue.h.gcc10 2020-02-09 23:30:16.963136320 +0100 +@@ -24,7 +24,7 @@ + #include <sys/time.h> + #include <semaphore.h> + +-struct _unicap_queue ++extern struct _unicap_queue + { + sem_t sema; + sem_t *psema; +--- libunicap-0.9.12/cpi/euvccam/queue.h 2010-01-19 07:52:49.000000000 +0100 ++++ libunicap-0.9.12/cpi/euvccam/queue.h.gcc10 2020-02-09 23:30:05.037048713 +0100 +@@ -24,7 +24,7 @@ + #include <sys/time.h> + #include <semaphore.h> + +-struct _unicap_queue ++extern struct _unicap_queue + { + sem_t sema; + sem_t *psema; diff --git a/libraries/libunicap/libunicap.SlackBuild b/libraries/libunicap/libunicap.SlackBuild index 35f2eee368..45b4174e18 100644 --- a/libraries/libunicap/libunicap.SlackBuild +++ b/libraries/libunicap/libunicap.SlackBuild @@ -52,6 +52,8 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +patch -p1 < $CWD/gcc10.patch + # This header has moved sed -i "s|linux\/videodev\.|libv4l1-videodev.|" \ cpi/v4l/v4l.c cpi/v4l2cpi/uvcvideo.h |