kopia lustrzana https://github.com/FreeSpacenav/spacenavd
build on IRIX
rodzic
220436cd32
commit
15e6848716
|
@ -138,6 +138,8 @@ echo ""
|
|||
|
||||
HAVE_ALLOCA_H=`check_header alloca.h`
|
||||
HAVE_MALLOC_H=`check_header malloc.h`
|
||||
HAVE_STDINT_H=`check_header stdint.h`
|
||||
HAVE_INTTYPES_H=`check_header inttypes.h`
|
||||
|
||||
if [ "$X11" = "no" ]; then
|
||||
echo "WARNING: you have disabled the X11 interface, the resulting daemon \
|
||||
|
@ -169,13 +171,14 @@ if [ "$OPT" = 'yes' ]; then
|
|||
fi
|
||||
|
||||
if [ "$X11" = 'yes' ]; then
|
||||
echo 'xlib = -L/usr/X11/lib -lX11' >>Makefile
|
||||
echo 'xlib = -L/usr/X11/lib' >>Makefile
|
||||
if [ -n "$HAVE_XINPUT2_H" ]; then
|
||||
echo 'xlib += -lXi' >>Makefile
|
||||
fi
|
||||
if [ -n "$HAVE_XTEST_H" ]; then
|
||||
echo xlib += -lXtst >>Makefile
|
||||
fi
|
||||
echo 'xlib += -lX11 -lXext' >>Makefile
|
||||
fi
|
||||
|
||||
if [ -n "$CFLAGS" ]; then
|
||||
|
@ -209,6 +212,8 @@ echo >>$cfgheader
|
|||
# check for alloca.h
|
||||
[ -n "$HAVE_ALLOCA_H" ] && echo $HAVE_ALLOCA_H >>$cfgheader
|
||||
[ -n "$HAVE_MALLOC_H" ] && echo $HAVE_MALLOC_H >>$cfgheader
|
||||
[ -n "$HAVE_STDINT_H" ] && echo $HAVE_STDINT_H >>$cfgheader
|
||||
[ -n "$HAVE_INTTYPES_H" ] && echo $HAVE_INTTYPES_H >>$cfgheader
|
||||
[ -n "$HAVE_XINPUT2_H" ] && echo $HAVE_XINPUT2_H >>$cfgheader
|
||||
[ -n "$HAVE_XTEST_H" ] && echo $HAVE_XTEST_H >>$cfgheader
|
||||
echo >>$cfgheader
|
||||
|
|
|
@ -15,6 +15,8 @@ GNU General Public License for more details.
|
|||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
|
|
@ -31,10 +31,6 @@ struct usb_dev_info *find_usb_devices(int (*match)(const struct usb_dev_info*))
|
|||
return 0;
|
||||
}
|
||||
|
||||
void free_usb_devices_list(struct usb_dev_info *list)
|
||||
{
|
||||
}
|
||||
|
||||
int open_dev_usb(struct device *dev)
|
||||
{
|
||||
return -1;
|
||||
|
|
|
@ -1,7 +1,13 @@
|
|||
#ifndef PROTO_H_
|
||||
#define PROTO_H_
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef HAVE_STDINT_H_
|
||||
#include <stdint.h>
|
||||
#elif defined(HAVE_INTTYPES_H_)
|
||||
#include <inttypes.h>
|
||||
#endif
|
||||
|
||||
/* maximum supported protocol version */
|
||||
#define MAX_PROTO_VER 1
|
||||
|
|
|
@ -34,6 +34,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#include "kbemu.h"
|
||||
#endif
|
||||
|
||||
#ifndef isfinite
|
||||
#define isfinite(x) (!isnan(x))
|
||||
#endif
|
||||
|
||||
static int lsock = -1;
|
||||
|
||||
|
|
|
@ -0,0 +1,44 @@
|
|||
/*
|
||||
spacenavd - a free software replacement driver for 6dof space-mice.
|
||||
Copyright (C) 2007-2023 John Tsiombikas <nuclear@member.fsf.org>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/* this must be the inverse of all the other xdetect_*.c ifdefs */
|
||||
#if !defined(__linux__) && !defined(__FreeBSD__) && !defined(__APPLE__)
|
||||
#include <sys/select.h>
|
||||
#include "xdetect.h"
|
||||
|
||||
int xdet_start(void)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
void xdet_stop(void)
|
||||
{
|
||||
}
|
||||
|
||||
int xdet_get_fd(void)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
int handle_xdet_events(fd_set *rset)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
#else
|
||||
int spacenav_xdetect_none_shut_up_empty_source_warning;
|
||||
#endif
|
Ładowanie…
Reference in New Issue