diff --git a/source/synth/LookupTable.h b/source/synth/LookupTable.h index 8c75b31..28933bd 100644 --- a/source/synth/LookupTable.h +++ b/source/synth/LookupTable.h @@ -63,7 +63,7 @@ class LookupTable { private: int32_t mNumEntries; - synth_float_t *mTable; + synth_float_t *mTable = nullptr; }; #endif // SYNTHMARK_LOOKUP_TABLE_H diff --git a/source/tools/scheddl.h b/source/tools/scheddl.h index d443d0f..7d48194 100644 --- a/source/tools/scheddl.h +++ b/source/tools/scheddl.h @@ -1,6 +1,7 @@ #if !defined(SYNTHMARK_SCHEDDL_H) && !defined(__APPLE__) #define SYNTHMARK_SCHEDDL_H +#include #include #include #include @@ -13,6 +14,7 @@ const uint64_t SCHED_GETATTR_FLAGS_DL_ABSOLUTE = 0x01; +#ifndef SCHED_ATTR_SIZE_VER0 // provided by glibc >= 2.41 struct sched_attr { uint32_t size; @@ -36,6 +38,7 @@ struct sched_attr { uint32_t sched_util_min; uint32_t sched_util_max; }; +#endif inline int sched_setattr(pid_t pid, const struct sched_attr *attr,