Add bt_common_abort() and use it instead of abort() directly
[babeltrace.git] / src / compat / fcntl.h
index c5289430106f2d2df10c898e357a42020239209f..ae76e61e3155a6aba5cd72c9cb1c66e6d756ffb6 100644 (file)
@@ -25,6 +25,8 @@
  * SOFTWARE.
  */
 
+#include "common/common.h"
+
 #ifdef BABELTRACE_HAVE_POSIX_FALLOCATE
 
 #include <fcntl.h>
@@ -122,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. */
-               abort();
+               bt_common_abort();
        }
 
 end:
This page took 0.023355 seconds and 4 git commands to generate.