<P dir=ltr style="MARGIN-RIGHT: 0px">heh... y'know, there are quite a few utilities that have this... i don't even remember doing the ol' :%s and moving on...</P>
<P dir=ltr style="MARGIN-RIGHT: 0px">in solaris, u_int32_t is called uint32_t</P>
<P dir=ltr style="MARGIN-RIGHT: 0px">so i went through the files that used it and just search&replace...</P>
<P dir=ltr style="MARGIN-RIGHT: 0px">fred</P>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<P dir=ltr style="MARGIN-RIGHT: 0px">Ran into this while compiling nsca-2.1:<BR><BR>$ make all<BR>cd ./src/; make all ; cd ..<BR>make[1]: Entering directory `/usr/local/src/nsca-2.1/src'<BR>gcc -g -O2 -DHAVE_CONFIG_H  -lnsl -lsocket nsca.c netutils.c utils.c -o nsca<BR>In file included from nsca.c:18:<BR>../common/common.h:105: parse error before `u_int32_t'<BR>../common/common.h:105: warning: no semicolon at end of struct or union<BR>../common/common.h:106: warning: data definition has no type or storage class<BR>../common/common.h:111: parse error before `}'<BR>../common/common.h:111: warning: data definition has no type or storage class<BR>../common/common.h:116: parse error before `u_int32_t'<BR>../common/common.h:116: warning: no semicolon at end of struct or union<BR>../common/common.h:117: warning: data definition has no type or storage class<BR>nsca.c: In function `handle_connection':<BR>nsca.c:768: `init_packet' undeclared (first use in this function)<BR>nsca.c:
768: (Each undeclared identifier is reported only once<BR>nsca.c:768: for each function it appears in.)<BR>nsca.c:768: parse error before `send_packet'<BR>nsca.c:791: `send_packet' undeclared (first use in this function)<BR>nsca.c:793: `u_int32_t' undeclared (first use in this function)<BR>nsca.c: In function `handle_connection_read':<BR>nsca.c:837: `data_packet' undeclared (first use in this function)<BR>nsca.c:837: parse error before `receive_packet'<BR>nsca.c:838: `u_int32_t' undeclared (first use in this function)<BR>nsca.c:856: `receive_packet' undeclared (first use in this function)<BR>nsca.c:896: `packet_crc32' undeclared (first use in this function)<BR>nsca.c:898: `calculated_crc32' undeclared (first use in this function)<BR><BR>[snip]<BR><BR>I should mention that the make went fine.<BR><BR>I looked through the FAQ, but no joy.  Suggestions?<BR></P></BLOCKQUOTE><p><br><hr size=1><b>Do You Yahoo!?</b><br>
<a href="http://rd.yahoo.com/careers/mailsig/new/*http://www.hotjobs.com">HotJobs, a Yahoo! service</a> - Search Thousands of New Jobs