Index: src/tools/thread/thread_test.c
===================================================================
RCS file: /cvsroot/pgsql-server/src/tools/thread/thread_test.c,v
retrieving revision 1.30
diff -c -c -r1.30 thread_test.c
*** src/tools/thread/thread_test.c	28 May 2004 18:37:10 -0000	1.30
--- src/tools/thread/thread_test.c	9 Jun 2004 15:03:29 -0000
***************
*** 104,110 ****
  {
  	pthread_t	thread1,
  				thread2;
! 
  	if (argc > 1)
  	{
  		fprintf(stderr, "Usage: %s\n", argv[0]);
--- 104,111 ----
  {
  	pthread_t	thread1,
  				thread2;
! 	int			fd;
! 	
  	if (argc > 1)
  	{
  		fprintf(stderr, "Usage: %s\n", argv[0]);
***************
*** 120,130 ****
  	/* Make temp filenames, might not have strdup() */
  	temp_filename_1 = malloc(strlen(TEMP_FILENAME_1) + 1);
  	strcpy(temp_filename_1, TEMP_FILENAME_1);
! 	mktemp(temp_filename_1);
  
  	temp_filename_2 = malloc(strlen(TEMP_FILENAME_2) + 1);
  	strcpy(temp_filename_2, TEMP_FILENAME_2);
! 	mktemp(temp_filename_2);
  	
  #if !defined(HAVE_GETADDRINFO) && !defined(HAVE_GETHOSTBYNAME_R)
  	if (gethostname(myhostname, MAXHOSTNAMELEN) != 0)
--- 121,133 ----
  	/* Make temp filenames, might not have strdup() */
  	temp_filename_1 = malloc(strlen(TEMP_FILENAME_1) + 1);
  	strcpy(temp_filename_1, TEMP_FILENAME_1);
! 	fd = mkstemp(temp_filename_1);
! 	close(fd);
  
  	temp_filename_2 = malloc(strlen(TEMP_FILENAME_2) + 1);
  	strcpy(temp_filename_2, TEMP_FILENAME_2);
! 	fd = mkstemp(temp_filename_2);
! 	close(fd);
  	
  #if !defined(HAVE_GETADDRINFO) && !defined(HAVE_GETHOSTBYNAME_R)
  	if (gethostname(myhostname, MAXHOSTNAMELEN) != 0)
