X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FAdjustor.c;h=40bc9ddd07599b82b6edc20e8c259f22726cc714;hb=f7963d3f11e67375b8c6ecbd71e56f0d0ac262dd;hp=03fb5d9acd08c5e21352c27d6fb53f5a6da2490d;hpb=5123ae93cfc5cdfcecc84340a9517580ad900d64;p=ghc-hetmet.git diff --git a/rts/Adjustor.c b/rts/Adjustor.c index 03fb5d9..40bc9dd 100644 --- a/rts/Adjustor.c +++ b/rts/Adjustor.c @@ -42,9 +42,9 @@ Haskell side. #include "RtsUtils.h" #include -#if defined(USE_LIBFFI) +#if defined(USE_LIBFFI_FOR_ADJUSTORS) -#include +#include "ffi.h" #include void @@ -73,6 +73,7 @@ static ffi_type * char_to_ffi_type(char c) case 's': return &ffi_type_uint16; case 'B': return &ffi_type_sint8; case 'b': return &ffi_type_uint8; + case 'p': return &ffi_type_pointer; default: barf("char_to_ffi_type: unknown type '%c'", c); } } @@ -1171,4 +1172,4 @@ if ( *(unsigned char*)ptr != 0xe8 ) { freeExec(ptr); } -#endif // !USE_LIBFFI +#endif // !USE_LIBFFI_FOR_ADJUSTORS