Subject: Compiling problem
To: 'port-sparc@netbsd.org' <port-sparc@netbsd.org>
From: Steven Grunza <steven.grunza@dgms.com>
List: port-sparc
Date: 06/10/1999 11:18:04
I'm having a problem with _BSD_USECONDS_T_ not being defined.  The 
following script file shows the problem.

grunza@hw-ss1%(1) cat tst.c
#include <stdio.h>
#include <unistd.h>

int main( int argc, char ** argv )
{

  int           i;


        printf( "There were %d arguments.\nThey were ", argc );

        for( i = 0; i < argc; i++ )
        {
                printf( "%s ", *(argv+i) );
        }

        printf( "\nDone.\n");

        return(0);
}

/* end of file tst.c    */
grunza@hw-ss1%(2) make tst
cc -O2   -o tst tst.c
In file included from tst.c:2:
/usr/include/unistd.h:253: syntax error before `ualarm'
/usr/include/unistd.h:253: warning: parameter names (without types) 
in function declaration
/usr/include/unistd.h:253: warning: data definition has no type or 
storage class
/usr/include/unistd.h:254: warning: parameter names (without types) 
in function declaration
*** Error code 1

Stop.

If I add the line

#define _BSD_USECONDS_T_

to the top of the tst.c file, it works ok.

Did I miss something during the 1.3.2 to 1.4 upgrade process?


=======================================================
Steven Grunza				Hardware Engineer
------------------------------------------------------------------  
--------------------------------------------
mailto:grunza@dgms.com		Ulticom
voice:	(609) 608 - 2759    		1020 Briggs Road
fax:	(856) 866 - 2033			Mt. Laurel, NJ 08054
flames: /dev/null			
------------------------------------------------------------------  
--------------------------------------------
Unix is user friendly, it's just particular about with whom it makes 
friends.