comparison src/sound.c @ 380:8626e4521993 r21-2-5

Import from CVS: tag r21-2-5
author cvs
date Mon, 13 Aug 2007 11:07:10 +0200
parents cc15677e0335
children bbff43aa5eb7
comparison
equal deleted inserted replaced
379:76b7d63099ad 380:8626e4521993
30 #include "buffer.h" 30 #include "buffer.h"
31 #ifdef HAVE_X_WINDOWS 31 #ifdef HAVE_X_WINDOWS
32 #include "console-x.h" 32 #include "console-x.h"
33 #endif 33 #endif
34 34
35 #include "commands.h"
36 #include "device.h" 35 #include "device.h"
37 #include "redisplay.h" 36 #include "redisplay.h"
38 #include "sysdep.h" 37 #include "sysdep.h"
39 38
40 #ifdef HAVE_UNISTD_H 39 #ifdef HAVE_UNISTD_H
454 else if (gethostname (localname, sizeof (localname))) 453 else if (gethostname (localname, sizeof (localname)))
455 DEVICE_ON_CONSOLE_P (d) = 0; /* can't find hostname? */ 454 DEVICE_ON_CONSOLE_P (d) = 0; /* can't find hostname? */
456 else 455 else
457 { 456 {
458 /* We have to call gethostbyname() on the result of gethostname() 457 /* We have to call gethostbyname() on the result of gethostname()
459 because the two aren't guarenteed to be the same name for the 458 because the two aren't guaranteed to be the same name for the
460 same host: on some losing systems, one is a FQDN and the other 459 same host: on some losing systems, one is a FQDN and the other
461 is not. Here in the wide wonderful world of Unix it's rocket 460 is not. Here in the wide wonderful world of Unix it's rocket
462 science to obtain the local hostname in a portable fashion. 461 science to obtain the local hostname in a portable fashion.
463 462
464 And don't forget, gethostbyname() reuses the structure it 463 And don't forget, gethostbyname() reuses the structure it