Bug 39848 - Unnecessary inclusion of errno.h in apr/test
Summary: Unnecessary inclusion of errno.h in apr/test
Status: RESOLVED FIXED
Alias: None
Product: APR
Classification: Unclassified
Component: APR test (show other bugs)
Version: HEAD
Hardware: Other other
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache Portable Runtime bugs mailinglist
URL:
Keywords: PatchAvailable
Depends on:
Blocks:
 
Reported: 2006-06-21 04:07 UTC by Curt Arnold
Modified: 2006-06-21 01:49 UTC (History)
0 users



Attachments
Patch file removing unnecessary includes (1.64 KB, patch)
2006-06-21 04:09 UTC, Curt Arnold
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Curt Arnold 2006-06-21 04:07:46 UTC
test/testrand.c, test/testrand2.c, test/testprocmutex.c, test/testthread.c, and
test/testsleep.c all include errno.h, but do not access the global variable
errno or use any of the defined preprocessor macros.  

The unnecessary inclusion of errno.h causes these modules to fail to compile on
platforms, such as Windows CE, where errno.h is not supported.
Comment 1 Curt Arnold 2006-06-21 04:09:00 UTC
Created attachment 18493 [details]
Patch file removing unnecessary includes
Comment 2 Paul Querna 2006-06-21 08:49:42 UTC
Committed to trunk in r415941:
http://svn.apache.org/viewvc?view=rev&revision=415941

Thanks!