summaryrefslogtreecommitdiff
path: root/src/unix/posix.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/unix/posix.h')
-rw-r--r--src/unix/posix.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/unix/posix.h b/src/unix/posix.h
index 0c8732aff..c428384e4 100644
--- a/src/unix/posix.h
+++ b/src/unix/posix.h
@@ -26,18 +26,12 @@ typedef int GIT_SOCKET;
#define p_unlink(p) unlink(p)
#define p_mkdir(p,m) mkdir(p, m)
#define p_fsync(fd) fsync(fd)
+extern char *p_realpath(const char *, char *);
#define p_recv(s,b,l,f) recv(s,b,l,f)
#define p_send(s,b,l,f) send(s,b,l,f)
#define p_inet_pton(a, b, c) inet_pton(a, b, c)
-/* The OpenBSD realpath function behaves differently */
-#if !defined(__OpenBSD__)
-# define p_realpath(p, po) realpath(p, po)
-#else
-char *p_realpath(const char *, char *);
-#endif
-
#define p_vsnprintf(b, c, f, a) vsnprintf(b, c, f, a)
#define p_snprintf(b, c, f, ...) snprintf(b, c, f, __VA_ARGS__)
#define p_mkstemp(p) mkstemp(p)