blob: d4c8f443b1290ec85f41f3bb3767d20d928f4120 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- lib/hostname.cc.orig Sun Aug 25 00:04:39 2002
+++ lib/hostname.cc Sun Aug 25 00:06:23 2002
@@ -22,6 +22,7 @@
#include "config.h"
#include "mystring/mystring.h"
#include <unistd.h>
+#include <string.h>
#include <sys/utsname.h>
static mystring* hostname_cache = 0;
@@ -30,7 +31,9 @@
#ifdef HAVE_GETDOMAINNAME
// Re-declare the prototype here, as some systems don't declare it
// in a predictable header file.
+#if __FreeBSD_version > 500034
extern "C" int getdomainname();
+#endif
#endif
static void getnames()
|