mirror of
https://git.suckless.org/9base
synced 2025-08-29 11:23:48 -07:00
applied Sebastian Liem's OpenBSD patch, thanks!
This commit is contained in:
6
ed/ed.c
6
ed/ed.c
@@ -121,7 +121,7 @@ void setnoaddr(void);
|
||||
void setwide(void);
|
||||
void squeeze(int);
|
||||
void substitute(int);
|
||||
char* _mktemp(char *as);
|
||||
char* __mktemp(char *as);
|
||||
|
||||
Rune La[] = { 'a', 0 };
|
||||
Rune Lr[] = { 'r', 0 };
|
||||
@@ -162,7 +162,7 @@ main(int argc, char *argv[])
|
||||
globp = Lr;
|
||||
}
|
||||
zero = malloc((nlall+5)*sizeof(int*));
|
||||
tfname = _mktemp(tmp);
|
||||
tfname = __mktemp(tmp);
|
||||
init();
|
||||
setjmp(savej);
|
||||
commands();
|
||||
@@ -1584,7 +1584,7 @@ putchr(int ac)
|
||||
}
|
||||
|
||||
char*
|
||||
_mktemp(char *as)
|
||||
__mktemp(char *as)
|
||||
{
|
||||
char *s;
|
||||
unsigned pid;
|
||||
|
@@ -44,6 +44,7 @@ disksize(int fd, struct stat *st)
|
||||
#define _HAVESTGEN
|
||||
#include <sys/disklabel.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/dkio.h>
|
||||
static vlong
|
||||
disksize(int fd, struct stat *st)
|
||||
{
|
||||
|
Reference in New Issue
Block a user