diff options
author | Karel Zak | 2012-05-29 10:08:25 +0200 |
---|---|---|
committer | Karel Zak | 2012-05-29 10:08:25 +0200 |
commit | 3a9c3f3fb757dd04b8ac44c575c65dda6bae054b (patch) | |
tree | cb920932374f707a4083d3db1205e52c86aac0fd /term-utils/agetty.c | |
parent | logger: use memcpy instead of bcopy (diff) | |
download | kernel-qcow2-util-linux-3a9c3f3fb757dd04b8ac44c575c65dda6bae054b.tar.gz kernel-qcow2-util-linux-3a9c3f3fb757dd04b8ac44c575c65dda6bae054b.tar.xz kernel-qcow2-util-linux-3a9c3f3fb757dd04b8ac44c575c65dda6bae054b.zip |
include/c: move fallback for MAXHOSTNAMELEN to c.h
Reported-by: Thomas Schwinge <thomas@codesourcery.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'term-utils/agetty.c')
-rw-r--r-- | term-utils/agetty.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/term-utils/agetty.c b/term-utils/agetty.c index 36e00eb44..9101e7fd3 100644 --- a/term-utils/agetty.c +++ b/term-utils/agetty.c @@ -119,14 +119,6 @@ #define DEF_EOL 0 #define DEF_SWITCH 0 /* default switch char */ -#ifndef MAXHOSTNAMELEN -# ifdef HOST_NAME_MAX -# define MAXHOSTNAMELEN HOST_NAME_MAX -# else -# define MAXHOSTNAMELEN 64 -# endif /* HOST_NAME_MAX */ -#endif /* MAXHOSTNAMELEN */ - /* * When multiple baud rates are specified on the command line, the first one * we will try is the first one specified. |