37 |
#include <stdio.h> |
#include <stdio.h> |
38 |
#include <stdlib.h> |
#include <stdlib.h> |
39 |
#include <errno.h> |
#include <errno.h> |
40 |
#include <sys/socket.h> |
|
|
|
|
41 |
#ifdef HAVE_SYS_TYPES_H |
#ifdef HAVE_SYS_TYPES_H |
42 |
#include <sys/types.h> |
#include <sys/types.h> |
43 |
#endif |
#endif |
44 |
|
|
45 |
|
#include <sys/socket.h> |
46 |
|
|
47 |
#ifdef HAVE_ASM_PARAM_H |
#ifdef HAVE_ASM_PARAM_H |
48 |
#include <asm/param.h> |
#include <asm/param.h> |
1059 |
*/ |
*/ |
1060 |
static char *append_hostname(char *addr) { |
static char *append_hostname(char *addr) { |
1061 |
|
|
1062 |
char buf[MAXHOSTNAMELEN]; |
char buf[STRLEN]; |
1063 |
char * fulladdr; |
char * fulladdr; |
1064 |
|
|
1065 |
if (gethostname(buf, MAXHOSTNAMELEN) != 0) { |
if (gethostname(buf, STRLEN) != 0) { |
1066 |
yyerror("Cannot find hostname for mailaddress"); |
yyerror("Cannot find hostname for mailaddress"); |
1067 |
} |
} |
1068 |
|
|