mirror of
https://git.suckless.org/9base
synced 2025-08-30 20:03:47 -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 setwide(void);
|
||||||
void squeeze(int);
|
void squeeze(int);
|
||||||
void substitute(int);
|
void substitute(int);
|
||||||
char* _mktemp(char *as);
|
char* __mktemp(char *as);
|
||||||
|
|
||||||
Rune La[] = { 'a', 0 };
|
Rune La[] = { 'a', 0 };
|
||||||
Rune Lr[] = { 'r', 0 };
|
Rune Lr[] = { 'r', 0 };
|
||||||
@@ -162,7 +162,7 @@ main(int argc, char *argv[])
|
|||||||
globp = Lr;
|
globp = Lr;
|
||||||
}
|
}
|
||||||
zero = malloc((nlall+5)*sizeof(int*));
|
zero = malloc((nlall+5)*sizeof(int*));
|
||||||
tfname = _mktemp(tmp);
|
tfname = __mktemp(tmp);
|
||||||
init();
|
init();
|
||||||
setjmp(savej);
|
setjmp(savej);
|
||||||
commands();
|
commands();
|
||||||
@@ -1584,7 +1584,7 @@ putchr(int ac)
|
|||||||
}
|
}
|
||||||
|
|
||||||
char*
|
char*
|
||||||
_mktemp(char *as)
|
__mktemp(char *as)
|
||||||
{
|
{
|
||||||
char *s;
|
char *s;
|
||||||
unsigned pid;
|
unsigned pid;
|
||||||
|
@@ -44,6 +44,7 @@ disksize(int fd, struct stat *st)
|
|||||||
#define _HAVESTGEN
|
#define _HAVESTGEN
|
||||||
#include <sys/disklabel.h>
|
#include <sys/disklabel.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
#include <sys/dkio.h>
|
||||||
static vlong
|
static vlong
|
||||||
disksize(int fd, struct stat *st)
|
disksize(int fd, struct stat *st)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user