forked from mirrors/tftp-hpa-google
Major overhaul of the portability stuff; port to autoconf 2.52
This commit is contained in:
parent
4c0a635276
commit
2c31169f57
16 changed files with 236 additions and 176 deletions
|
@ -45,15 +45,7 @@
|
|||
#ifndef TFTPSUBS_H
|
||||
#define TFTPSUBS_H
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <signal.h>
|
||||
#include <setjmp.h>
|
||||
#include "../config.h"
|
||||
|
||||
#ifndef HAVE_IPPORT_TFTP_DEFINITION
|
||||
#define IPPORT_TFTP 69
|
||||
#endif
|
||||
#include "config.h"
|
||||
|
||||
struct tftphdr;
|
||||
|
||||
|
@ -81,19 +73,4 @@ extern char *xstrdup(const char *);
|
|||
*/
|
||||
void (*bsd_signal(int, void (*)(int)))(int);
|
||||
|
||||
#ifndef HAVE_SIGSETJMP
|
||||
#define sigsetjmp(x,y) setjmp(x)
|
||||
#define siglongjmp(x,y) longjmp(x,y)
|
||||
#define sigjmp_buf jmp_buf
|
||||
#endif
|
||||
|
||||
/*
|
||||
* How to annotate unused variables
|
||||
*/
|
||||
#ifdef __GNUC__
|
||||
#define UNUSED __attribute__((unused))
|
||||
#else
|
||||
#define UNUSED
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue