Accepting request 513174 from home:Andreas_Schwab:glibc:rebuild

- decls.patch: fix missing declarations

OBS-URL: https://build.opensuse.org/request/show/513174
OBS-URL: https://build.opensuse.org/package/show/Base:System/gpm?expand=0&rev=46
This commit is contained in:
Adam Majer 2017-08-01 11:15:35 +00:00 committed by Git OBS Bridge
parent 3dd2aa900d
commit 15af887b03
3 changed files with 33 additions and 0 deletions

25
decls.patch Normal file
View File

@ -0,0 +1,25 @@
Index: gpm-1.20.7/src/daemon/open_console.c
===================================================================
--- gpm-1.20.7.orig/src/daemon/open_console.c
+++ gpm-1.20.7/src/daemon/open_console.c
@@ -22,6 +22,7 @@
#include <fcntl.h> /* open and co. */
#include <sys/stat.h> /* stat() */
#include <sys/ioctl.h> /* ioctl */
+#include <sys/sysmacros.h> /* major */
/* Linux specific (to be outsourced in gpm2 */
#include <linux/serial.h> /* for serial console check */
Index: gpm-1.20.7/src/prog/gpm-root.y
===================================================================
--- gpm-1.20.7.orig/src/prog/gpm-root.y
+++ gpm-1.20.7/src/prog/gpm-root.y
@@ -1196,7 +1196,7 @@ int main(int argc, char **argv)
/* reap your zombies */
childaction.sa_handler=reap_children;
#if defined(__GLIBC__)
- __sigemptyset(&childaction.sa_mask);
+ sigemptyset(&childaction.sa_mask);
#else /* __GLIBC__ */
childaction.sa_mask=0;
#endif /* __GLIBC__ */

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jul 5 13:10:44 UTC 2017 - schwab@suse.de
- decls.patch: fix missing declarations
-------------------------------------------------------------------
Mon Jun 12 16:55:57 UTC 2017 - adam.majer@suse.de

View File

@ -55,6 +55,8 @@ Patch28: gpm-dependencies.patch
Patch29: gpm-do_create_symlink.patch
#PATCH-FIX-UPSTREAM Copy the current licence text from gpl-2.0+ to gpm.h
Patch30: gpm-fix_fsf_addess.patch
#PATCH-FIX-UPSTREAM Fix missing declarations
Patch31: decls.patch
BuildRequires: bison
BuildRequires: libtool
BuildRequires: lzma
@ -118,6 +120,7 @@ Development files for the gpm (general purpose mouse) package.
%patch28
%patch29
%patch30
%patch31 -p1
cp %{S:2} %{S:3} %{S:4} .
cp %{S:7} COPYING