dnsd.c fixup for AmigaOS

This commit is contained in:
Viktor Szakats 2026-06-12 18:45:33 +02:00
parent 36afa2772f
commit 3ed479ad27
No known key found for this signature in database

View file

@ -23,6 +23,8 @@
***************************************************************************/
#include "first.h"
#ifndef __AMIGA__
static int dnsd_wrotepidfile = 0;
static int dnsd_wroteportfile = 0;
@ -30,10 +32,6 @@ static int dnsd_wroteportfile = 0;
#include <sys/select.h>
#endif
#ifdef __AMIGA__
#error building dnsd on AMIGA os is unsupported
#endif
static uint16_t get16bit(const unsigned char **pkt, size_t *size)
{
const unsigned char *p = *pkt;
@ -1063,3 +1061,10 @@ dnsd_cleanup:
logmsg("========> dnsd quits");
return result;
}
#else
static int test_dnsd(int argc, const char **argv)
{
logmsg("building dnsd on AMIGA os is unsupported");
return 1;
}
#endif