]> granicus.if.org Git - procps-ng/commitdiff
Fixed warning about error_at_line
authorCraig Small <csmall@enc.com.au>
Tue, 26 Mar 2013 10:27:38 +0000 (21:27 +1100)
committerCraig Small <csmall@enc.com.au>
Tue, 26 Mar 2013 10:27:38 +0000 (21:27 +1100)
ps/display.c:65:7: warning: implicit declaration of function
‘error_at_line’ [-Wimplicit-function-declaration]

Applied Gentoo patch created by ssuominen

References:
  http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-process/procps/files/procps-3.3.6-error_at_line.patch?annotate=1.1&diff_format=f
  http://www.freelists.org/post/procps/procpsng-337,17

Signed-off-by: Craig Small <csmall@enc.com.au>
ps/display.c

index b1f98bdc0f8dde4a0ddc6abb1073986f2e0477a8..c20285d411668600a35c9efe2cf1ee7b36879890 100644 (file)
@@ -25,6 +25,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <error.h>
 
 #include <sys/sysmacros.h>
 #include <sys/types.h>