bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnulib] xgethostname fix


From: Paul Eggert
Subject: Re: [Bug-gnulib] xgethostname fix
Date: 24 Sep 2003 14:13:46 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Simon Josefsson <address@hidden> writes:

> Isn't a header for xgethostname needed?

Yes, thanks; one should be included.  I installed this, as I don't
think we need a copyright notice on a one-line obvious header.

2003-09-24  Simon Josefsson  <address@hidden>

        * lib/xgethostname.h: New file.
        * lib/xgethostname.c: Include it.
        * modules/xgethostname: Add xgethostname.h.

--- /dev/null   Tue Mar 18 13:55:57 2003
+++ lib/xgethostname.h  Wed Sep 24 14:07:31 2003
@@ -0,0 +1 @@
+char *xgethostname (void);
Index: lib/xgethostname.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/xgethostname.c,v
retrieving revision 1.16
diff -p -u -r1.16 xgethostname.c
--- lib/xgethostname.c  12 Sep 2003 20:14:10 -0000      1.16
+++ lib/xgethostname.c  24 Sep 2003 21:06:51 -0000
@@ -21,6 +21,9 @@
 # include <config.h>
 #endif
 
+/* Specification.  */
+#include "xgethostname.h"
+
 #include <stdlib.h>
 #include <sys/types.h>
 
Index: modules/xgethostname
===================================================================
RCS file: /cvsroot/gnulib/gnulib/modules/xgethostname,v
retrieving revision 1.5
diff -p -u -r1.5 xgethostname
--- modules/xgethostname        15 Sep 2003 20:40:48 -0000      1.5
+++ modules/xgethostname        24 Sep 2003 21:06:51 -0000
@@ -2,6 +2,7 @@ Description:
 Return machine's hostname, without size limitations.
 
 Files:
+lib/xgethostname.h
 lib/xgethostname.c
 
 Depends-on:
@@ -13,9 +14,10 @@ exit
 configure.ac:
 
 Makefile.am:
-lib_SOURCES += xgethostname.c
+lib_SOURCES += xgethostname.h xgethostname.c
 
 Include:
+"xgethostname.h"
 
 Maintainer:
 Jim Meyering




reply via email to

[Prev in Thread] Current Thread [Next in Thread]