replace HOST_NAME_MAX by _POSIX_HOST_NAME_MAX for *BSD (Markus Dolze)

This commit is contained in:
marschap
2008-09-20 07:49:22 +00:00
parent 695eb1ec8f
commit 52bea0a1c7
2 changed files with 7 additions and 7 deletions
+5 -5
View File
@@ -118,11 +118,6 @@ more important. Here are the USB connection types the HD44780 driver supports:
<link linkend="hd44780-ftdi">ftdi</link>:
Display connected to a dual channel FTDI 2232D USB chip
</listitem>
<listitem>
<link linkend="hd44780-ethlcd">ethlcd</link>:
Display connected via TCP to PoE powered ethlcd device (<ulink url="http://manio.skyboo.net/ethlcd/"></ulink>)
</listitem>
</itemizedlist>
<para>
@@ -134,6 +129,11 @@ Last but not least, for special purposes, there are even more connection types:
<link linkend="hd44780-i2c">i2c</link>:
LCD driven by PCF8574(A)/PCA9554(A) connected via I<superscript>2</superscript>C
</listitem>
<listitem>
<link linkend="hd44780-ethlcd">ethlcd</link>:
Display connected via TCP to PoE powered ethlcd device (<ulink url="http://manio.skyboo.net/ethlcd/"></ulink>)
</listitem>
</itemizedlist>
+2 -2
View File
@@ -23,7 +23,7 @@
#include <stdio.h>
#include <string.h>
#include <bits/local_lim.h>
#include <limits.h>
#include <fcntl.h>
@@ -38,7 +38,7 @@ void ethlcd_HD44780_uPause(PrivateData *p, int usecs) {}
// initialisation function
int hd_init_ethlcd(Driver *drvthis)
{
char hostname[HOST_NAME_MAX];
char hostname[_POSIX_HOST_NAME_MAX];
long flags;
PrivateData *p = (PrivateData*) drvthis->private_data;