If there is no serial console configured, we can simply drop writes
from com32 rather than letting syslinux do that.
#include <string.h>
#include <com32.h>
#include <minmax.h>
+#include <syslinux/config.h>
#include "file.h"
ssize_t __serial_write(struct file_info *fp, const void *buf, size_t count)
(void)fp;
+ if (!syslinux_serial_console_info()->iobase)
+ return count; /* Nothing to do */
+
memset(&ireg, 0, sizeof ireg);
ireg.eax.b[1] = 0x04;
#include <com32.h>
#include <minmax.h>
#include <colortbl.h>
+#include <syslinux/config.h>
#include "file.h"
static void emit(char ch)
(void)fp;
+ if (!syslinux_serial_console_info()->iobase)
+ return count; /* Nothing to do */
+
while ( count-- ) {
unsigned char ch = *bufp++;