diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-09-01 17:05:38 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-09-01 17:05:38 +0200 |
commit | 4535ac71e075946f374aef0bb1e2997869f148fe (patch) | |
tree | 7439eea8c02b5164ef459f5b7a7565a1d0c3f42c /pcilib | |
parent | 6bad94bb8546a3a5595d340e7a2d809635e3bd5d (diff) | |
download | pcitool-4535ac71e075946f374aef0bb1e2997869f148fe.tar.gz pcitool-4535ac71e075946f374aef0bb1e2997869f148fe.tar.bz2 pcitool-4535ac71e075946f374aef0bb1e2997869f148fe.tar.xz pcitool-4535ac71e075946f374aef0bb1e2997869f148fe.zip |
Fixes out-of-source builds and minor build issues
Diffstat (limited to 'pcilib')
-rw-r--r-- | pcilib/CMakeLists.txt | 2 | ||||
-rw-r--r-- | pcilib/bar.c | 1 | ||||
-rw-r--r-- | pcilib/error.c | 1 | ||||
-rw-r--r-- | pcilib/fifo.c | 1 | ||||
-rw-r--r-- | pcilib/pci.c | 1 |
5 files changed, 6 insertions, 0 deletions
diff --git a/pcilib/CMakeLists.txt b/pcilib/CMakeLists.txt index be59cb7..e21f1ba 100644 --- a/pcilib/CMakeLists.txt +++ b/pcilib/CMakeLists.txt @@ -1,6 +1,8 @@ include_directories( ${CMAKE_SOURCE_DIR} + ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/pcilib + ${CMAKE_BINARY_DIR}/pcilib ) set(HEADERS pcilib.h pci.h export.h bar.h fifo.h model.h bank.h register.h kmem.h irq.h locking.h lock.h dma.h event.h plugin.h tools.h error.h debug.h env.h version.h config.h) diff --git a/pcilib/bar.c b/pcilib/bar.c index 418f864..074a0b2 100644 --- a/pcilib/bar.c +++ b/pcilib/bar.c @@ -1,4 +1,5 @@ #define _BSD_SOURCE +#define _DEFAULT_SOURCE #define _POSIX_C_SOURCE 200809L #include <stdio.h> diff --git a/pcilib/error.c b/pcilib/error.c index 2c4296e..06af292 100644 --- a/pcilib/error.c +++ b/pcilib/error.c @@ -1,4 +1,5 @@ #define _BSD_SOURCE +#define _DEFAULT_SOURCE #include <stdio.h> #include <stdlib.h> diff --git a/pcilib/fifo.c b/pcilib/fifo.c index 593400f..7ed87b8 100644 --- a/pcilib/fifo.c +++ b/pcilib/fifo.c @@ -1,4 +1,5 @@ #define _BSD_SOURCE +#define _DEFAULT_SOURCE #define _POSIX_C_SOURCE 200809L #include <stdio.h> diff --git a/pcilib/pci.c b/pcilib/pci.c index 62ac92d..ca17931 100644 --- a/pcilib/pci.c +++ b/pcilib/pci.c @@ -1,6 +1,7 @@ //#define PCILIB_FILE_IO #define _XOPEN_SOURCE 700 #define _BSD_SOURCE +#define _DEFAULT_SOURCE #define _POSIX_C_SOURCE 200809L #include <stdio.h> |