File tree Expand file tree Collapse file tree 3 files changed +21
-3
lines changed
Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -568,7 +568,7 @@ libdummy_serial_la_LIBADD = $(top_builddir)/common/libnutprivate-@NUT_SOURCE_GIT
568568
569569# Note: unlike SERLIBS that are usually part of the system one way or another, LIBUSB_LIBS are typically shared:
570570libdummy_libusb_la_LIBADD = $(top_builddir ) /common/libnutprivate-@NUT_SOURCE_GITREV_SEMVER_UNDERSCORES@-common-all.la $(LIBUSB_LIBS )
571- libdummy_libusb_la_CFLAGS = $(AM_CFLAGS ) $(LIBUSB_CFLAGS )
571+ libdummy_libusb_la_CFLAGS = $(AM_CFLAGS ) $(LIBUSB_CFLAGS ) -DBUILD_FOR_SHARED_PRIVATE_LIBS=1
572572
573573else !ENABLE_SHARED_PRIVATE_LIBS
574574
Original file line number Diff line number Diff line change 3030 * -------------------------------------------------------------------------- */
3131
3232#include "config.h" /* for HAVE_USB_DETACH_KERNEL_DRIVER_NP flag */
33+
34+ #if (defined ENABLE_SHARED_PRIVATE_LIBS ) && ENABLE_SHARED_PRIVATE_LIBS
35+ # if (defined BUILD_FOR_SHARED_PRIVATE_LIBS ) && BUILD_FOR_SHARED_PRIVATE_LIBS
36+ # define suggest_NDE_conflict LIBNUTPRIVATE_suggest_NDE_conflict
37+ /* else: would need to pass method pointer like in main.c, too much
38+ * hassle for a mixed-dynamicity build that might never happen */
39+ # endif
40+ #endif
41+
3342#include "common.h" /* for xmalloc, upsdebugx prototypes */
3443#include "usb-common.h"
3544#include "nut_libusb.h"
3847#endif /* WIN32 */
3948
4049#define USB_DRIVER_NAME "USB communication driver (libusb 0.1)"
41- #define USB_DRIVER_VERSION "0.52 "
50+ #define USB_DRIVER_VERSION "0.53 "
4251
4352/* driver description structure */
4453upsdrv_info_t comm_upsdrv_info = {
Original file line number Diff line number Diff line change 2727 * -------------------------------------------------------------------------- */
2828
2929#include "config.h" /* for HAVE_LIBUSB_DETACH_KERNEL_DRIVER flag */
30+
31+ #if (defined ENABLE_SHARED_PRIVATE_LIBS ) && ENABLE_SHARED_PRIVATE_LIBS
32+ # if (defined BUILD_FOR_SHARED_PRIVATE_LIBS ) && BUILD_FOR_SHARED_PRIVATE_LIBS
33+ # define suggest_NDE_conflict LIBNUTPRIVATE_suggest_NDE_conflict
34+ /* else: would need to pass method pointer like in main.c, too much
35+ * hassle for a mixed-dynamicity build that might never happen */
36+ # endif
37+ #endif
38+
3039#include "common.h" /* for xmalloc, upsdebugx prototypes */
3140#include "usb-common.h"
3241#include "nut_libusb.h"
3342#include "nut_stdint.h"
3443
3544#define USB_DRIVER_NAME "USB communication driver (libusb 1.0)"
36- #define USB_DRIVER_VERSION "0.52 "
45+ #define USB_DRIVER_VERSION "0.53 "
3746
3847/* driver description structure */
3948upsdrv_info_t comm_upsdrv_info = {
You can’t perform that action at this time.
0 commit comments