Skip to content

Commit 298001f

Browse files
committed
Fixed diskfree() returning garbage value
Always include platform.h before system headers. Otherwise types such as off_t will use 32-bit layout instead of the 64-bit layout required by _FILE_OFFSET_BITS=64 on HP-UX. Ticket: ENT-13531 Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech> (cherry picked from commit c30bead)
1 parent 1a67d4e commit 298001f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

libpromises/storage_tools.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
included file COSL.txt.
2323
*/
2424

25+
#include <platform.h>
26+
2527
#include <cf3.defs.h>
2628

2729
#ifdef HAVE_SYS_STATFS_H

0 commit comments

Comments
 (0)