diff options
Diffstat (limited to 'src/afb-api-so-v2.c')
-rw-r--r-- | src/afb-api-so-v2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/afb-api-so-v2.c b/src/afb-api-so-v2.c index 71d51c04..a0399da1 100644 --- a/src/afb-api-so-v2.c +++ b/src/afb-api-so-v2.c @@ -15,6 +15,8 @@ * limitations under the License. */ +#if WITH_LEGACY_BINDING_V2 + #define _GNU_SOURCE #include <stdlib.h> @@ -221,3 +223,4 @@ int afb_api_so_v2_add(const char *path, void *handle, struct afb_apiset *declare return -1; } +#endif |