ports/misc/orville-write/files/patch-lib__common.h
Stefan Eßer 5a1b795757 Fix build with -fno-common
While here fix one program error ("%s" format without argument).
2020-10-01 15:31:55 +00:00

20 lines
617 B
C

--- lib_common.h.orig 2000-02-01 05:49:10 UTC
+++ lib_common.h
@@ -6,7 +6,7 @@
#include "getutent.h"
int init_wstream(int mode);
-struct utmp *find_utmp(char *tty);
+struct utmpx *find_utmp(char *tty);
void find_wrttmp(char *tty, time_t time,struct wrttmp *wbuf, long *pos);
void dflt_wrttmp(struct wrttmp *wbuf, char *tty, time_t time);
char *leafname(char *fullpath);
@@ -19,7 +19,7 @@ extern int f_disconnect, f_exceptions, f_helpers, f_lo
extern char *progname;
extern char mydevname[];
extern int wstream;
-struct wrthdr wt_head;
+extern struct wrthdr wt_head;
#ifdef TTYPERMS
int saveperms(void);