strtod: fix bug in replacement function on AIX
[gnulib.git] / lib / getdomainname.c
index f4c6a16..95ca399 100644 (file)
@@ -1,6 +1,6 @@
 /* getdomainname emulation for systems that doesn't have it.
 
-   Copyright (C) 2003, 2006 Free Software Foundation, Inc.
+   Copyright (C) 2003, 2006, 2008, 2009, 2010 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -20,7 +20,7 @@
 #include <config.h>
 
 /* Specification. */
-#include "getdomainname.h"
+#include <unistd.h>
 
 #include <string.h>
 #include <errno.h>
@@ -38,7 +38,7 @@
 int
 getdomainname (char *name, size_t len)
 {
-  const char *result = "";     /* Hardcode your domain name if you want.  */
+  const char *result = "";      /* Hardcode your domain name if you want.  */
   size_t result_len = strlen (result);
 
   if (result_len > len)