- remove sys/sysctl.h include as it no longer exists in linux

OBS-URL: https://build.opensuse.org/package/show/shells/ksh?expand=0&rev=225
This commit is contained in:
Michael Schröder 2020-11-13 13:11:36 +00:00 committed by Git OBS Bridge
parent 7ec200d356
commit 9e7b972fc4
3 changed files with 23 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Nov 13 14:10:43 CET 2020 - mls@suse.de
- remove sys/sysctl.h include as it no longer exists in linux
new patch: ksh93-no-sysctl.dif
-------------------------------------------------------------------
Fri Sep 6 17:25:26 CEST 2019 - mls@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package ksh
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@ -157,6 +157,7 @@ Patch53: ksh93-optimizeleak.dif
Patch54: ksh93-edpredict.dif
Patch55: ksh93-spawnlock.dif
Patch56: ksh93-filedefined.dif
Patch57: ksh93-no-sysctl.dif
Patch62: ksh-locale.patch
Patch63: cpp.patch
@ -270,6 +271,7 @@ fi
%patch54
%patch55
%patch56
%patch57
%patch63 -p 1

13
ksh93-no-sysctl.dif Normal file
View File

@ -0,0 +1,13 @@
--- ./src/lib/libcmd/uname.c.orig 2020-11-13 13:08:48.136513672 +0000
+++ ./src/lib/libcmd/uname.c 2020-11-13 13:09:03.356469649 +0000
@@ -90,10 +90,6 @@ __STDPP__directive pragma pp:hide getdom
# include <sys/utsname.h>
#endif
-#ifdef __linux__
-# include <sys/sysctl.h>
-#endif
-
#if defined(__STDPP__directive) && defined(__STDPP__hide)
__STDPP__directive pragma pp:nohide getdomainname gethostid gethostname sethostname
#else