|
@ -49,32 +49,33 @@ libcompat_la_CFLAGS = $(CFLAGS) $(USER_CFLAGS) |
|
|
libcompat_la_SOURCES = |
|
|
libcompat_la_SOURCES = |
|
|
libcompat_la_LIBADD = $(PLATFORM_LDADD) |
|
|
libcompat_la_LIBADD = $(PLATFORM_LDADD) |
|
|
|
|
|
|
|
|
if !HAVE_SETPROCTITLE |
|
|
|
|
|
libcompat_la_SOURCES += compat/setproctitle.c |
|
|
|
|
|
|
|
|
if !HAVE_ADJFREQ |
|
|
|
|
|
if HOST_FREEBSD |
|
|
|
|
|
libcompat_la_SOURCES += compat/adjfreq_freebsd.c |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
if !HAVE_STRLCAT |
|
|
|
|
|
libcompat_la_SOURCES += compat/strlcat.c |
|
|
|
|
|
|
|
|
if HOST_LINUX |
|
|
|
|
|
libcompat_la_SOURCES += compat/adjfreq_linux.c |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
if !HAVE_STRLCPY |
|
|
|
|
|
libcompat_la_SOURCES += compat/strlcpy.c |
|
|
|
|
|
|
|
|
if HOST_DARWIN |
|
|
|
|
|
libcompat_la_SOURCES += compat/adjfreq_osx.c |
|
|
|
|
|
endif |
|
|
|
|
|
if HOST_SOLARIS |
|
|
|
|
|
libcompat_la_SOURCES += compat/adjfreq_solaris.c |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
if !HAVE_STRTONUM |
|
|
|
|
|
libcompat_la_SOURCES += compat/strtonum.c |
|
|
|
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
if !HAVE_ASPRINTF |
|
|
if !HAVE_ASPRINTF |
|
|
libcompat_la_SOURCES += compat/bsd-asprintf.c |
|
|
libcompat_la_SOURCES += compat/bsd-asprintf.c |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
if !HAVE_REALLOCARRAY |
|
|
|
|
|
libcompat_la_SOURCES += compat/reallocarray.c |
|
|
|
|
|
|
|
|
if !HAVE_CLOCK_GETRES |
|
|
|
|
|
libcompat_la_SOURCES += compat/clock_getres.c |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
if !HAVE_MD5 |
|
|
|
|
|
libcompat_la_SOURCES += compat/md5.c |
|
|
|
|
|
|
|
|
if !HAVE_CLOCK_GETTIME |
|
|
|
|
|
if HOST_DARWIN |
|
|
|
|
|
libcompat_la_SOURCES += compat/mach-clock_gettime.c |
|
|
|
|
|
endif |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
if !HAVE_IMSG |
|
|
if !HAVE_IMSG |
|
@ -82,12 +83,28 @@ libcompat_la_SOURCES += compat/imsg.c |
|
|
libcompat_la_SOURCES += compat/imsg-buffer.c |
|
|
libcompat_la_SOURCES += compat/imsg-buffer.c |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
if !HAVE_ADJFREQ |
|
|
|
|
|
libcompat_la_SOURCES += compat/bsd-adjfreq.c |
|
|
|
|
|
|
|
|
if !HAVE_MD5 |
|
|
|
|
|
libcompat_la_SOURCES += compat/md5.c |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
if !HAVE_CLOCK_GETRES |
|
|
|
|
|
libcompat_la_SOURCES += compat/clock_getres.c |
|
|
|
|
|
|
|
|
if !HAVE_REALLOCARRAY |
|
|
|
|
|
libcompat_la_SOURCES += compat/reallocarray.c |
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
if !HAVE_SETPROCTITLE |
|
|
|
|
|
libcompat_la_SOURCES += compat/setproctitle.c |
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
if !HAVE_STRLCAT |
|
|
|
|
|
libcompat_la_SOURCES += compat/strlcat.c |
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
if !HAVE_STRLCPY |
|
|
|
|
|
libcompat_la_SOURCES += compat/strlcpy.c |
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
if !HAVE_STRTONUM |
|
|
|
|
|
libcompat_la_SOURCES += compat/strtonum.c |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
if !HAVE_SETRESGID |
|
|
if !HAVE_SETRESGID |
|
@ -98,12 +115,6 @@ if !HAVE_SETRESUID |
|
|
libcompat_la_SOURCES += compat/bsd-setresuid.c |
|
|
libcompat_la_SOURCES += compat/bsd-setresuid.c |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
if !HAVE_CLOCK_GETTIME |
|
|
|
|
|
if HOST_DARWIN |
|
|
|
|
|
libcompat_la_SOURCES += compat/mach-clock_gettime.c |
|
|
|
|
|
endif |
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
if !HAVE_ARC4RANDOM |
|
|
if !HAVE_ARC4RANDOM |
|
|
libcompat_la_SOURCES += compat/arc4random.c |
|
|
libcompat_la_SOURCES += compat/arc4random.c |
|
|
|
|
|
|
|
|