[packages/Mowitz] - fix missing includes
qboosh
qboosh at pld-linux.org
Mon Dec 2 07:56:23 CET 2024
commit 76625d3af67f039690e1106bf0e77569726a9f29
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Dec 2 06:33:57 2024 +0100
- fix missing includes
Mowitz-includes.patch | 37 +++++++++++++++++++++++++++++++++++++
Mowitz.spec | 2 ++
2 files changed, 39 insertions(+)
---
diff --git a/Mowitz.spec b/Mowitz.spec
index cedd3c1..4194381 100644
--- a/Mowitz.spec
+++ b/Mowitz.spec
@@ -7,6 +7,7 @@ License: GPL v2+, LGPL v2+, MIT
Group: Libraries
Source0: http://siag.nu/pub/mowitz/%{name}-%{version}.tar.gz
# Source0-md5: 35cfd18b05d45e0ba6b48896bd258138
+Patch0: %{name}-includes.patch
URL: http://siag.nu/mowitz/
BuildRequires: neXtaw-devel
BuildRequires: xorg-lib-libX11-devel
@@ -58,6 +59,7 @@ Statyczna biblioteka Mowitz.
%prep
%setup -q
+%patch0 -p1
%build
%configure \
diff --git a/Mowitz-includes.patch b/Mowitz-includes.patch
new file mode 100644
index 0000000..af7ccd9
--- /dev/null
+++ b/Mowitz-includes.patch
@@ -0,0 +1,37 @@
+--- Mowitz-0.3.1/Mowitz/MwHandle.c.orig 2007-08-30 08:39:21.000000000 +0200
++++ Mowitz-0.3.1/Mowitz/MwHandle.c 2024-12-02 06:27:40.257779791 +0100
+@@ -4,6 +4,7 @@
+ */
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <X11/IntrinsicP.h>
+ #include <X11/StringDefs.h>
+ #include "MwUtils.h"
+--- Mowitz-0.3.1/examples/listtree2.c.orig 2005-11-02 20:57:49.000000000 +0100
++++ Mowitz-0.3.1/examples/listtree2.c 2024-12-02 06:29:18.818350348 +0100
+@@ -1,4 +1,5 @@
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <X11/Intrinsic.h>
+ #include <X11/StringDefs.h>
+ #include "TreeFSel.h"
+--- Mowitz-0.3.1/examples/Directory.c.orig 2005-11-02 20:57:48.000000000 +0100
++++ Mowitz-0.3.1/examples/Directory.c 2024-12-02 06:29:50.098531425 +0100
+@@ -25,6 +25,7 @@
+
+ /* Converted to POSIX by Rob McMullen */
+
++#include <sys/stat.h>
+ #include "Directory.h"
+
+ /*--------------------------------------------------------------------------*
+--- Mowitz-0.3.1/examples/rulerdemo.c.orig 2005-11-02 20:57:49.000000000 +0100
++++ Mowitz-0.3.1/examples/rulerdemo.c 2024-12-02 06:29:58.801973321 +0100
+@@ -1,5 +1,6 @@
+
+ #include <stdio.h>
++#include <stdlib.h>
+
+ #include <X11/StringDefs.h>
+ #include <X11/Intrinsic.h>
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/Mowitz.git/commitdiff/76625d3af67f039690e1106bf0e77569726a9f29
More information about the pld-cvs-commit
mailing list