From 357d781af32cd3b4f4dd1a7d32827582717b33d5 Mon Sep 17 00:00:00 2001 From: Benjamin Tovar Date: Wed, 5 Jun 2019 08:39:39 -0400 Subject: [PATCH] off_t as long long int --- work_queue/src/work_queue.i | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/work_queue/src/work_queue.i b/work_queue/src/work_queue.i index 849d8c4eb3..1a782f38da 100644 --- a/work_queue/src/work_queue.i +++ b/work_queue/src/work_queue.i @@ -12,7 +12,9 @@ #include "rmsummary.h" %} -%typemap(in) off_t = int; +/* We compile with -D__LARGE64_FILES, thus off_t is at least 64bit. +long long int is guaranteed to be at least 64bit. */ +%typemap(in) off_t = long long int; /* vdebug() takes va_list as arg but SWIG can't wrap such functions. */ %ignore vdebug;