Use abort() instead of a false assertion
[babeltrace.git] / include / babeltrace / compat / fcntl-internal.h
index 33c2a09f710f5cd96bfc0be50ed50e84473f0fce..2040bec0e84b5d4fc049ba57e2035960150b8ccc 100644 (file)
@@ -39,7 +39,7 @@ int bt_posix_fallocate(int fd, off_t offset, off_t len)
 
 #elif defined(__MINGW32__) /* #ifdef BABELTRACE_HAVE_POSIX_FALLOCATE */
 
-#include <assert.h>
+#include <stdlib.h>
 #include <windows.h>
 #include <fcntl.h>
 
@@ -124,7 +124,7 @@ restore:
        /* Restore the original file pointer position */
        if (!SetFilePointerEx(handle, file_pos, NULL, FILE_BEGIN)) {
                /* We moved the file pointer but failed to restore it. */
-               assert(0);
+               abort();
        }
 
 end:
This page took 0.023515 seconds and 4 git commands to generate.