Fix build on macOS.

This changeset consists of two changes:

The declaration of the pyInitLastState global variable is moved from
pydevsup.h to setup.c. This is needed to avoid an "duplicate symbols"
error when linking. As this variable is only used in setup.c anyway,
there is no downside in moving its declaration there.

The log example application is now only built on Linux. As it depends
on the inotify API, which is Linux-specific, it cannot be reasonably
built on other platforms. As it is not needed for the pyDevSup to work,
it is OK to built it without this application.
This commit is contained in:
Sebastian Marsching
2019-02-24 11:27:40 +01:00
committed by mdavidsaver
parent 0d7e92ef80
commit f18bdb7b56
3 changed files with 3 additions and 3 deletions

View File

@ -15,8 +15,6 @@
#endif
initHookState pyInitLastState;
PyMODINIT_FUNC init_dbbase(void);
void pyDBD_cleanup(void);

View File

@ -24,6 +24,8 @@
#include "pydevsup.h"
initHookState pyInitLastState;
typedef struct {
const initHookState state;
const char * const name;

View File

@ -9,7 +9,7 @@ include $(TOP)/configure/CONFIG_PY
#=============================
# Build the IOC application
LOADABLE_LIBRARY_HOST = _inotifyy
LOADABLE_LIBRARY_HOST_Linux = _inotifyy
_inotifyy_SRCS += inotify_wrap.c