Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#1202 closed defect (fixed)

nvtt doesn't build with gcc 4.7

Reported by: bruno Owned by: philip
Priority: Should Have Milestone: Alpha 10
Component: Build & Packages Keywords:
Cc: Patch:

Description

unistd.h is no longer included by some other include files and needs to be included separately. Including it should break building under earlier versions of gcc.

--- a/libraries/nvtt/src/src/nvcore/Debug.cpp +++ b/libraries/nvtt/src/src/nvcore/Debug.cpp @@ -1,5 +1,6 @@

This code is in the public domain -- castanyo@…

+#include <unistd.h>

#include <nvcore/Debug.h> #include <nvcore/StrLib.h>

Change History (3)

comment:1 by bruno, 12 years ago

That was supposed to be SHOULDN'T break building under previous versions of gcc.

comment:2 by philip, 12 years ago

Owner: set to philip
Resolution: fixed
Status: newclosed

In 11379:

Fix NVTT build on GCC 4.7. Fixes #1202.

comment:3 by Kieran P, 12 years ago

Milestone: BacklogAlpha 10
Note: See TracTickets for help on using tickets.