Skip to content

Commit 1689b69

Browse files
authored
Merge pull request #389 from CodeConstruct/powerpc
Fix %llx/%lx build warnings on powerpc
2 parents 9237ba8 + e80b3e3 commit 1689b69

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

examples/discover-loop.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
* system (no existing connection required). The output will look more
1313
* interesting with more targets.
1414
*/
15+
#define __SANE_USERSPACE_TYPES__
16+
1517
#include <stdio.h>
1618
#include <stdlib.h>
1719
#include <string.h>

test/register.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
* for your pci device found in /sys/class/nvme/nvmeX/device/resource0
1212
*/
1313

14+
#define __SANE_USERSPACE_TYPES__
15+
1416
#include <fcntl.h>
1517
#include <inttypes.h>
1618
#include <libnvme.h>

0 commit comments

Comments
 (0)