aboutsummaryrefslogtreecommitdiff
path: root/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'compat.h')
-rw-r--r--compat.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/compat.h b/compat.h
index 65d6ec7a..5f3ff8fc 100644
--- a/compat.h
+++ b/compat.h
@@ -176,6 +176,17 @@ typedef uint64_t u_int64_t;
#define TTY_NAME_MAX 32
#endif
+#ifndef HOST_NAME_MAX
+#define HOST_NAME_MAX 255
+#endif
+
+#ifndef HAVE_FLOCK
+#define LOCK_SH 0
+#define LOCK_EX 0
+#define LOCK_NB 0
+#define flock(fd, op) (0)
+#endif
+
#ifndef HAVE_BZERO
#undef bzero
#define bzero(buf, len) memset(buf, 0, len);
@@ -239,6 +250,10 @@ int vasprintf(char **, const char *, va_list);
char *fgetln(FILE *, size_t *);
#endif
+#ifndef HAVE_FPARSELN
+char *fparseln(FILE *, size_t *, size_t *, const char *, int);
+#endif
+
#ifndef HAVE_SETENV
/* setenv.c */
int setenv(const char *, const char *, int);