mirror of
https://github.com/brouhaha/tapeutils.git
synced 2026-01-11 23:53:18 +00:00
Fix/allow compilation on OpenBSD
This commit is contained in:
parent
28dd1ac62d
commit
2fd40b20bf
2
read20.c
2
read20.c
@ -84,7 +84,7 @@ char *expression = 0;
|
||||
char *re_comp_error; /* Error message from re_comp() */
|
||||
extern char *re_comp();
|
||||
|
||||
#ifdef __APPLE__
|
||||
#if defined(__APPLE__) || defined(__OpenBSD__)
|
||||
static regex_t re_regexp;
|
||||
|
||||
char *re_comp(char *s)
|
||||
|
||||
2
tapeio.c
2
tapeio.c
@ -293,7 +293,7 @@ tape_handle_t opentape (char *name, int create, int writable)
|
||||
*p++ = '\0'; /* shoot out @, point at host name */
|
||||
user = (*p != '\0') ? host : NULL; /* keep non-null user */
|
||||
}
|
||||
#ifndef __APPLE__
|
||||
#if !defined(__APPLE__) && !defined(__OpenBSD__)
|
||||
if ((mtape->tapefd = rexec (&p, htons (512), user, NULL, "/etc/rmt",
|
||||
(int *) NULL)) < 0)
|
||||
FAIL ("?Connection failed\n");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user