Ticket #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: |
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
Note: See
TracTickets for help on using
tickets.

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