mirror of
https://github.com/postgres/postgres.git
synced 2025-11-03 09:13:20 +03:00
Check for and use <netdb.h> for postmaster.c, instead of checking if
MAXHOSTNAMELEN is defined. For some reason, my 2.5.1 Solaris box at work fails on that check...
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.46 1997/05/25 15:37:15 scrappy Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.47 1997/07/30 14:03:33 scrappy Exp $
|
||||
*
|
||||
* NOTES
|
||||
*
|
||||
@@ -34,7 +34,7 @@
|
||||
*/
|
||||
/* moved here to prevent double define */
|
||||
#include <sys/param.h> /* for MAXHOSTNAMELEN on most */
|
||||
#ifndef MAXHOSTNAMELEN
|
||||
#ifdef HAVE_NETDB_H
|
||||
#include <netdb.h> /* for MAXHOSTNAMELEN on some */
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user