libunicap/libunicap-0.9.12-gcc10.patch
Petr Šabata 21d2f3904e RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/libunicap#bb13498601ae2ecb469a06711989f07bcdb3cde0
2020-10-15 17:50:44 +02:00

26 lines
798 B
Diff

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;