--- util/makemap.c.orig	2000-10-28 11:56:04.000000000 +0900
+++ util/makemap.c	2020-11-21 17:24:54.000000000 +0900
@@ -44,6 +44,7 @@
 
 
 
+#include <stdlib.h>
 #include <stdio.h>
 #ifdef HAVE_SYS_TYPES_H
 #  include <sys/types.h>
@@ -57,7 +58,11 @@
 
 #include <binio.h>
 
-main( argc, argv )
+void vertex( float, float );
+int end_line( void );
+int done( char* );
+
+int main( argc, argv )
 int argc;
 char *argv[];
 {
@@ -171,7 +176,7 @@
 int NumVertices = 0;
 
 
-initialize()
+void initialize()
 {
    NumLines = NumVertices = 0;
    MapLine[0].minlat =  10000000;
@@ -184,7 +189,7 @@
 
 
 
-vertex( lat, lon )
+void vertex( lat, lon )
 float lat, lon;
 {
    static int init_flag = 1;
@@ -213,7 +218,7 @@
 
 
 
-end_line()
+int end_line()
 {
    if (NumVertices==0 || MapLine[NumLines].len==0) {
       printf("Error:  must call vertex() before end_line()!\n");
@@ -236,7 +241,7 @@
 
 
 
-done( filename )
+int done( filename )
 char *filename;
 {
    int f;