Skip to content

make unix-compat compilable under Windows x64 #7

Closed
kstokoz opened this Issue Oct 16, 2012 · 3 comments

3 participants

@kstokoz
kstokoz commented Oct 16, 2012

xxxx@t430 /tmp/unix-compat-0.4.0.0
$ runhaskell.exe Setup.lhs build
Building unix-compat-0.4.0.0...
Preprocessing library unix-compat-0.4.0.0...
[1 of 9] Compiling System.PosixCompat.Internal.Time ( src\System\PosixCompat\Internal\Time.hs, dist\build\System\PosixCompat\Internal\Time.o )
[2 of 9] Compiling System.PosixCompat.Unistd ( src\System\PosixCompat\Unistd.hs,
dist\build\System\PosixCompat\Unistd.o )
[3 of 9] Compiling System.PosixCompat.Types ( src\System\PosixCompat\Types.hs, dist\build\System\PosixCompat\Types.o )
[4 of 9] Compiling System.PosixCompat.User ( dist\build\System\PosixCompat\User.hs, dist\build\System\PosixCompat\User.o )
[5 of 9] Compiling System.PosixCompat.Extensions ( dist\build\System\PosixCompat\Extensions.hs, dist\build\System\PosixCompat\Extensions.o )
[6 of 9] Compiling System.PosixCompat.Time ( src\System\PosixCompat\Time.hs, dist\build\System\PosixCompat\Time.o )
[7 of 9] Compiling System.PosixCompat.Temp ( src\System\PosixCompat\Temp.hs, dist\build\System\PosixCompat\Temp.o )
[8 of 9] Compiling System.PosixCompat.Files ( dist\build\System\PosixCompat\Files.hs, dist\build\System\PosixCompat\Files.o )
[9 of 9] Compiling System.PosixCompat ( src\System\PosixCompat.hs, dist\build\System\PosixCompat.o )

cbits\mktemp.c:46:19: error: unknown type name 'uint32_t'
cbits\mktemp.c: In function '_gettemp':

cbits\mktemp.c:68:5: error: unknown type name 'uint32_t'

cbits\mktemp.c:86:9:
warning: implicit declaration of function 'random' [-Wimplicit-function-dec
laration]
cbits\mktemp.c: At top level:

cbits\mktemp.c:156:19: error: unknown type name 'uint32_t'

Adding #include <stdint.h> to mktemp.c did the trick.

@Mistuke
Mistuke commented Dec 11, 2012

I've also just ran into this issue. The include should be included or at least include the typedefs for the uint32_t

@jystic
Owner
jystic commented Dec 12, 2012

Sorry I forgot about this, I'll sort this out when I get home from work

@jystic
Owner
jystic commented Dec 18, 2012

Fixed in 0.4.1.0

@jystic jystic closed this Dec 18, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.