titan: add compat shims to compile on !OpenBSD

This commit is contained in:
Omar Polo 2023-07-22 15:50:22 +00:00
parent 800aa93c05
commit da3fc66ee8
1 changed files with 8 additions and 0 deletions

View File

@ -31,6 +31,14 @@
#include "iri.h"
#ifndef INFTIM
#define INFTIM -1
#endif
#ifndef __OpenBSD__
#define pledge(a, b) (0)
#endif
static int
dial(const char *hostname, const char *port)
{