File: missing-prototypes.patch

package info (click to toggle)
pgplot5 5.2.2-19.8
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid
  • size: 7,192 kB
  • sloc: fortran: 39,795; ansic: 22,554; objc: 1,534; sh: 1,298; makefile: 269; pascal: 233; perl: 209; tcl: 190; awk: 51; csh: 25
file content (30 lines) | stat: -rw-r--r-- 689 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Author: Andreas Beckmann <anbe@debian.org>
Description: fix building with -Werror=implicit-function-declaration

--- a/sys/grfileio.c
+++ b/sys/grfileio.c
@@ -18,8 +18,10 @@
 
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 #include <sys/types.h>
 #include <fcntl.h>
+#include <unistd.h>
 
 #ifdef PG_PPU
 #define GROFIL grofil_
--- a/sys/grtermio.c
+++ b/sys/grtermio.c
@@ -5,8 +5,11 @@
 /* Support routines for terminal I/O. This module defines the following
    Fortran-callable routines: GROTER, GRCTER, GRWTER, GRPTER. */
 
+#include <fcntl.h>
 #include <stdio.h>
+#include <string.h>
 #include <termios.h>
+#include <unistd.h>
 
 #ifdef PG_PPU
 #define GROTER groter_