Mercurial > hg > early-roguelike
comparison rogue3/mdport.c @ 88:07c4d4883ef2
rogue3: begin porting to autoconf.
Rogue V3 can now be built with './configure && make'. This is
preliminary: 'make install' does not work yet.
| author | John "Elwin" Edwards |
|---|---|
| date | Sat, 24 Aug 2013 13:36:13 -0700 |
| parents | e7dc901146f1 |
| children | ba9930a7f99d |
comparison
equal
deleted
inserted
replaced
| 87:f871cb0539d3 | 88:07c4d4883ef2 |
|---|---|
| 57 #include <process.h> | 57 #include <process.h> |
| 58 #endif | 58 #endif |
| 59 | 59 |
| 60 #if defined(HAVE_PWD_H) | 60 #if defined(HAVE_PWD_H) |
| 61 #include <pwd.h> | 61 #include <pwd.h> |
| 62 #endif | |
| 63 | |
| 64 #if defined(HAVE_SYS_UTSNAME) | |
| 65 #include <sys/utsname.h> | |
| 66 #endif | 62 #endif |
| 67 | 63 |
| 68 #if defined(HAVE_ARPA_INET_H) | 64 #if defined(HAVE_ARPA_INET_H) |
| 69 #include <arpa/inet.h> /* Solaris 2.8 required this for htonl() and ntohl() */ | 65 #include <arpa/inet.h> /* Solaris 2.8 required this for htonl() and ntohl() */ |
| 70 #endif | 66 #endif |
| 1566 | 1562 |
| 1567 endutxent(); | 1563 endutxent(); |
| 1568 | 1564 |
| 1569 return(count); | 1565 return(count); |
| 1570 #else | 1566 #else |
| 1571 return(1) | 1567 return(1); |
| 1572 #endif | 1568 #endif |
| 1573 } | 1569 } |
| 1574 | 1570 |
| 1575 int | 1571 int |
| 1576 md_lockfile(FILE *fp) | 1572 md_lockfile(FILE *fp) |
