mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Due to BIND 8.1.1, my Solaris 2.5.1 machine doesn't define MAXHOSTNAMELEN...
so, add a check that basically says if it isn't defined, set it to 256...
This commit is contained in:
		@@ -10,7 +10,7 @@
 | 
			
		||||
 *
 | 
			
		||||
 *
 | 
			
		||||
 * IDENTIFICATION
 | 
			
		||||
 *    $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.47 1997/07/30 14:03:33 scrappy Exp $
 | 
			
		||||
 *    $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.48 1997/07/30 14:08:11 scrappy Exp $
 | 
			
		||||
 *
 | 
			
		||||
 * NOTES
 | 
			
		||||
 *
 | 
			
		||||
@@ -38,6 +38,10 @@
 | 
			
		||||
#  include <netdb.h>              /* for MAXHOSTNAMELEN on some */
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifndef MAXHOSTNAMELEN
 | 
			
		||||
#  define MAXHOSTNAMELEN 256
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "postgres.h"
 | 
			
		||||
 | 
			
		||||
#include <signal.h>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user