/* 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
#include <config.h>
/* Specification. */
-#include "getdomainname.h"
+#include <unistd.h>
#include <string.h>
#include <errno.h>
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)