Bug 12359 - Undeclared datatype (missing #include)
Summary: Undeclared datatype (missing #include)
Status: RESOLVED FIXED
Alias: None
Product: Rarian
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: PowerPC Mac OS X (All)
: medium normal
Assignee: Don Scorgie
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 12247
Blocks:
  Show dependency treegraph
 
Reported: 2007-09-08 08:34 UTC by Daniel Macks
Modified: 2007-09-16 08:49 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Daniel Macks 2007-09-08 08:34:41 UTC
A user reported to me that building rarian on OS X failed:

rarian-sk-get-cl.cpp:165: error: 'uint' was not declared in this scope

but that replacing "uint" with "unsigned int" solved it. OS X does have the uint type, so that .c is just missing whatever #include declares it (it's probably part of the existing #include spaghetti on other platforms). I'm pretty sure it's <sys/types.h>.
Comment 1 Daniel Macks 2007-09-09 10:49:43 UTC
Conversely, could use a more "modern" datatype. "unsigned int" or "long int" perhaps? Based on the .cpp source, looks like it should be matched to whatever the st_mtime element of struct stat, which might be a time_t?
Comment 2 Don Scorgie 2007-09-12 11:34:29 UTC
Fixed in 0.6.0.  Not committed to SVN due to bug #12247.  Marking this as a dependance to remind me to commit when done.
Comment 3 Don Scorgie 2007-09-16 08:49:30 UTC
Committed.  Closing.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.