mirror of
https://github.com/openharmony/third_party_backends.git
synced 2026-07-16 07:54:26 -04:00
584dbdbecf
Add check for winsock2.h for socket.h replancement. Also, use this check to add ws2_32 library. Also, switch all winsock.h references to winsock2.h. Add check for getuid and getpass; which are not on mingw. Add a syslog() replacement that is basically a print(). This is also used by vsyslog() replacement. Comment out parts of replacement sigprocmask.c on mingw. To support these configure.in changes, I need to rebuild all related files with autoconf 2.68 and libtool 2.4. Hand ported our sane-backend specific changes to newer ltmain.sh.
14 lines
205 B
C
14 lines
205 B
C
#include "../include/sane/config.h"
|
|
|
|
#ifndef HAVE_SYSLOG
|
|
|
|
#include <stdio.h>
|
|
|
|
void syslog(int priority, const char *format, va_list args)
|
|
{
|
|
printf("%d ", priority);
|
|
printf(format, args);
|
|
}
|
|
|
|
#endif
|