[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-devel] Compile error: close undeclared in unix/ssh_agent_platf
From: |
Tero Koskinen |
Subject: |
[Monotone-devel] Compile error: close undeclared in unix/ssh_agent_platform.cc |
Date: |
Tue, 3 Feb 2009 22:09:02 +0200 |
Hi,
The head revision of net.venge.monotone doesn't compile on OpenBSD
since unix/ssh_agent_platform.cc is missing unistd.h header.
(head rev = 84326b08549d3ec19135600f437a6b5346a225ca)
Error below:
unix/ssh_agent_platform.cc: In function `int connect_to_agent()':
unix/ssh_agent_platform.cc:53: error: `close' undeclared (first use this
function)
unix/ssh_agent_platform.cc:53: error: (Each undeclared identifier is reported
only once for each function it appears in.)
unix/ssh_agent_platform.cc: In destructor `
ssh_agent_platform::~ssh_agent_platform()':
unix/ssh_agent_platform.cc:80: error: `close' undeclared (first use this
function)
gmake[2]: *** [unix/ssh_agent_platform.o] Error 1
And simple diff which should solve the issue:
#
# old_revision [84326b08549d3ec19135600f437a6b5346a225ca]
#
# patch "unix/ssh_agent_platform.cc"
# from [38a5880fd0b308fdcbc7b0cd96566bf998a47ad6]
# to [b05d0beb101b003fad6451168e1e06128eba447b]
#
============================================================
--- unix/ssh_agent_platform.cc 38a5880fd0b308fdcbc7b0cd96566bf998a47ad6
+++ unix/ssh_agent_platform.cc b05d0beb101b003fad6451168e1e06128eba447b
@@ -18,6 +18,7 @@
#include <errno.h>
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
#ifndef MSG_NOSIGNAL
#define MSG_NOSIGNAL 0
--
Tero Koskinen <address@hidden>
- [Monotone-devel] Compile error: close undeclared in unix/ssh_agent_platform.cc,
Tero Koskinen <=