Source: nn Version: 6.7.3-14 Severity: normal Tags: patch Dear Maintainer,
>From d84a6a4013d83ebd99603070130a30a8b0b04273 Mon Sep 17 00:00:00 2001 >From: Bjarni Ingi Gislason <bjarn...@rhi.hi.is> >Date: Sun, 14 Mar 2021 00:25:13 +0000 >Subject: [PATCH] hostname.c: declare "gethostname()"; add prototype for > "nn_gethostname()" Signed-off-by: Bjarni Ingi Gislason <bjarn...@rhi.hi.is> --- hostname.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hostname.c b/hostname.c index edf112f..3a9ad39 100644 --- a/hostname.c +++ b/hostname.c @@ -14,6 +14,9 @@ * You lose! */ +#ifndef _POSIX_C_SOURCE +#define _POSIX_C_SOURCE 200809L +#endif #include <unistd.h> #include <string.h> #include "config.h" @@ -24,6 +27,8 @@ /* * Easy -- we already got it */ +void nn_gethostname(char *, int); + void nn_gethostname(char *name, int length) { -- 2.30.1 -- System Information: Debian Release: bullseye/sid APT prefers testing APT policy: (500, 'testing'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 5.10.19-1 (SMP w/2 CPU threads) Locale: LANG=is_IS.iso88591, LC_CTYPE=is_IS.iso88591 (charmap=ISO-8859-1), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) -- debconf information excluded -- Bjarni I. Gislason