1#ifndef LIBCURL_AMIGAOS_H
2#define LIBCURL_AMIGAOS_H
3/***************************************************************************
4 *                                  _   _ ____  _
5 *  Project                     ___| | | |  _ \| |
6 *                             / __| | | | |_) | |
7 *                            | (__| |_| |  _ <| |___
8 *                             \___|\___/|_| \_\_____|
9 *
10 * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
11 *
12 * This software is licensed as described in the file COPYING, which
13 * you should have received as part of this distribution. The terms
14 * are also available at http://curl.haxx.se/docs/copyright.html.
15 *
16 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
17 * copies of the Software, and permit persons to whom the Software is
18 * furnished to do so, under the terms of the COPYING file.
19 *
20 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21 * KIND, either express or implied.
22 *
23 ***************************************************************************/
24
25#ifdef __AMIGA__ /* Any AmigaOS flavour */
26
27#ifndef __ixemul__
28
29#include <exec/types.h>
30#include <exec/execbase.h>
31
32#include <proto/exec.h>
33#include <proto/dos.h>
34
35#include <sys/socket.h>
36
37#include "config-amigaos.h"
38
39#ifndef select
40# define select(args...) WaitSelect( args, NULL)
41#endif
42#ifndef ioctl
43# define ioctl(a,b,c,d)  IoctlSocket( (LONG)a, (ULONG)b, (char*)c)
44#endif
45#define _AMIGASF        1
46
47extern void amiga_cleanup();
48extern BOOL amiga_init();
49
50#else /* __ixemul__ */
51
52#warning compiling with ixemul...
53
54#endif /* __ixemul__ */
55#endif /* __AMIGA__ */
56#endif /* LIBCURL_AMIGAOS_H */
57
58