site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Thread-index: AciLmkdyhd77lveNEdyG9AAX8iyRzQ== Thread-topic: xnu-1228 header files User-agent: Microsoft-Entourage/11.4.0.080122 hi- i downloaded the latest xnu source code: http://www.opensource.apple.com/darwinsource/tarballs/apsl/xnu-1228.tar.gz and tried compiling a simple file with a single "include": ===== #include <sys/sysctl.h> int main(int argc, char **argv) { return 0; } ===== however that include generates a "previous definition" error via the "_structs.h" header file: ==== macbook. g++ -I/Users/username/xnu-1228/bsd -Wall -o bug bug.c /usr/include/time.h:89: error: redefinition of struct timespec¹ /Users/augusto/xnu-1228/bsd/sys/_structs.h:89: error: previous definition of struct timespec¹ ==== is this a bug or am i performing a bad include? thanks, augusto. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Augusto Callejas