summaryrefslogtreecommitdiff
path: root/openbsd-compat/openbsd-compat.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2010-08-16 13:15:23 +1000
committerDarren Tucker <dtucker@zip.com.au>2010-08-16 13:15:23 +1000
commitaa74f6754aa3696cf15abb3f27b00a7274e062dd (patch)
treed4f5831e6656828dc97ecd67127444fe2bfe21d8 /openbsd-compat/openbsd-compat.h
parentad7d547acd8ee484f6841dd6c63bd768144e1329 (diff)
- (dtucker) [configure.ac openbsd-compat/Makefile.in
openbsd-compat/openbsd-compat.h openbsd-compat/strptime.c] Add strptime to the compat library which helps on platforms like old IRIX. Based on work by djm, tested by Tom Christensen.
Diffstat (limited to 'openbsd-compat/openbsd-compat.h')
-rw-r--r--openbsd-compat/openbsd-compat.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h
index cad2408d6..e15d2bd96 100644
--- a/openbsd-compat/openbsd-compat.h
+++ b/openbsd-compat/openbsd-compat.h
@@ -1,4 +1,4 @@
1/* $Id: openbsd-compat.h,v 1.49 2010/01/16 12:58:37 dtucker Exp $ */ 1/* $Id: openbsd-compat.h,v 1.50 2010/08/16 03:15:23 dtucker Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1999-2003 Damien Miller. All rights reserved. 4 * Copyright (c) 1999-2003 Damien Miller. All rights reserved.
@@ -87,6 +87,11 @@ int setenv(register const char *name, register const char *value, int rewrite);
87void strmode(int mode, char *p); 87void strmode(int mode, char *p);
88#endif 88#endif
89 89
90#ifndef HAVE_STRPTIME
91#include <time.h>
92char *strptime(const char *buf, const char *fmt, struct tm *tm);
93#endif
94
90#if !defined(HAVE_MKDTEMP) || defined(HAVE_STRICT_MKSTEMP) 95#if !defined(HAVE_MKDTEMP) || defined(HAVE_STRICT_MKSTEMP)
91int mkstemps(char *path, int slen); 96int mkstemps(char *path, int slen);
92int mkstemp(char *path); 97int mkstemp(char *path);