From 43343c151f9824a44bd6e353610fdeb23f910c72 Mon Sep 17 00:00:00 2001 From: Herbert Valerio Riedel Date: Thu, 7 Aug 2014 12:23:07 +0200 Subject: Use correct POSIX offset-type for tell/seekdir This fixes the FFI imports to use the proper `CLong` type over the previous incorrect `COff` type, as using the wrong argument type can cause problems when the `long` and `off_t` types have different size. Historic note from the manual page: In glibc up to version 2.1.1, the return type of telldir() was off_t. POSIX.1-2001 specifies long, and this is the type used since glibc 2.1.2 (released in 1999). --- changelog.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'changelog.md') diff --git a/changelog.md b/changelog.md index ae5b726..c481922 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,4 @@ +<<<<<<< HEAD # Changelog for [`unix` package](http://hackage.haskell.org/package/unix) ## 2.7.0.2 *TBA* @@ -9,6 +10,7 @@ CPP macros for required getgrgid_r and getgrnam_r functions definition so the fix is to change from C ABI calling convention to C API calling convention + * Fix potential type-mismatch in `telldir`/`seekdir` FFI imports ## 2.7.0.1 *Mar 2014* -- cgit v1.2.3