]> git.pld-linux.org Git - packages/psacct.git/commitdiff
- build fixed
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 16 Feb 2013 22:04:57 +0000 (23:04 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 16 Feb 2013 22:04:57 +0000 (23:04 +0100)
psacct-build.patch [new file with mode: 0644]
psacct.spec

diff --git a/psacct-build.patch b/psacct-build.patch
new file mode 100644 (file)
index 0000000..26d5120
--- /dev/null
@@ -0,0 +1,13 @@
+--- acct-6.5.5/lib/stdio.in.h~ 2013-02-16 23:00:04.119332820 +0100
++++ acct-6.5.5/lib/stdio.in.h  2013-02-16 23:02:00.196823604 +0100
+@@ -453,8 +453,10 @@
+ /* It is very rare that the developer ever has full control of stdin,
+    so any use of gets warrants an unconditional warning.  Assume it is
+    always declared, since it is required by C89.  */
++#ifdef gets
+ #undef gets
+ _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
++#endif
+ #if 0
+ # if 0
index 9694425276afd7b7db19f09ecacbabb686c11968..6bea5275bde089f3630f857b94ef54594e4db3ca 100644 (file)
@@ -18,6 +18,7 @@ Source3:      acct.sysinit
 Source4:       acct.sysconfig
 Patch0:                acct-info.patch
 Patch1:                %{name}-path.patch
+Patch2:                %{name}-build.patch
 URL:           http://www.gnu.org/directory/GNU/acct.html
 BuildRequires: autoconf >= 2.63
 BuildRequires: automake
@@ -53,6 +54,7 @@ processos estão incluídas aqui.
 %setup -q -n acct-%{version}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %{__libtoolize}
This page took 0.091078 seconds and 4 git commands to generate.