1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Fix build on 4.x

Submitted by:	maintainer
Reported by:	bento via kris
This commit is contained in:
Pav Lucistnik 2004-01-25 17:38:38 +00:00
parent b3f74fa245
commit 0a171f2792
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=99106
3 changed files with 14 additions and 1 deletions

View File

@ -22,6 +22,7 @@ USE_AUTOCONF= yes
USE_AUTOMAKE= yes
USE_REINPLACE= yes
USE_BZIP2= yes
USE_GETOPT_LONG=yes
CONFIGURE_ARGS= \
--prefix=${PREFIX} \
--with-lang=ua \

View File

@ -0,0 +1,12 @@
--- iceb_client.c.old Sat Jan 24 23:05:19 2004
+++ libdev/iceb_client.c Sat Jan 24 23:05:37 2004
@@ -6,8 +6,8 @@
#include <stdlib.h>
#include <string.h>
#include <netdb.h>
-#include <sys/socket.h>
#include <sys/types.h>
+#include <sys/socket.h>
#include <ctype.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>

View File

@ -76,7 +76,7 @@
- return(ttyname_b);
+char* workid() {
+ // get host name
+ static const long length = sysconf(_SC_HOST_NAME_MAX);
+ static const long length = 1024; //sysconf(_SC_HOST_NAME_MAX);
+ char host[length];
+ host[0] = '\0';
+ gethostname(host, length);