Skip to content

Commit bf2855b

Browse files
Use the real gethostid on Solaris. (#121)
* Use the real gethostid on Solaris. Solaris has this, so we might as well use it like we do on other platforms. This value is used in response to queries from it from Lisp. * Improve undefining of HAS_GETHOSTID. Enable it on Solaris in `inc/version.h`. This file already disables it on DOS, so no need to do so again in `src/initsout.c`.
1 parent e801373 commit bf2855b

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

inc/version.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ typedef signed char s_char;
231231
/********************************************************/
232232
#ifdef OS5
233233
/* Solaris, sort of SYSV-ish, but not really */
234-
#undef HAS_GETHOSTID
235234
#define SYSVSIGNALS 1
236235
#define NOFORN
237236
#define LOCK_X_UPDATES 1

src/initsout.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424

2525
#ifndef DOS
2626
#include <pwd.h>
27-
#else
28-
#undef HAS_GETHOSTID
29-
#endif /* DOS */
27+
#endif
3028

3129
#include "hdw_conf.h"
3230
#include "lispemul.h"

src/uutils.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@
4040
#include "osmsgdefs.h"
4141
#include "uraiddefs.h"
4242

43-
#ifdef OS5
44-
#define gethostid() 0
45-
#endif /* OS5 */
46-
4743
/************************************************************************/
4844
/* */
4945
/* l i s p _ s t r i n g _ t o _ c _ s t r i n g */

0 commit comments

Comments
 (0)