>Number:         2725
>Category:       os-sco
>Synopsis:       SCO dev kit error (NOT apache error)
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Tue Jul 28 03:30:01 PDT 1998
>Last-Modified:
>Originator:     [EMAIL PROTECTED]
>Organization:
apache
>Release:        1.3.1
>Environment:
SCO 3.2v4.2 with SCO compiler
>Description:
The timeval struct is defined in two SCO .h files (same definition).
sys/time.h and sys/select.h

One of the apache files includes both these .h files, and so compilation fails 
with an error that timeval is being redifined.
>How-To-Repeat:
Compile on same platform
>Fix:
edit /usr/include/sys/time.h and /usr/include/sys/select.h to have the timeval 
declaration change FROM

struct timeval {
        long            tv_sec; /* seconds */
        long            tv_usec;/* and microseconds */
};        

TO

#ifndef DIDTIMEVAL
#define DIDTIMEVAL
struct timeval {
        long            tv_sec; /* seconds */
        long            tv_usec;/* and microseconds */
};
#endif          

(in BOTH .h files)

Then it will compile OK.
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <[EMAIL PROTECTED]> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]



Reply via email to