1
0
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:
Kris Katterjohn 2019-04-27 17:13:57 -05:00
parent 28dd1ac62d
commit 2fd40b20bf
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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");