mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Use some more standard header for htonl() and the family.
Instead to redefine, include header where FreeBSD keeps off_t type
This commit is contained in:
parent
925ef86944
commit
58a126ad1f
@ -3,24 +3,23 @@
|
|||||||
*
|
*
|
||||||
* Etip, show some tips!
|
* Etip, show some tips!
|
||||||
* Part of Equinox Desktop Environment (EDE).
|
* Part of Equinox Desktop Environment (EDE).
|
||||||
* Copyright (c) 2008 EDE Authors.
|
* Copyright (c) 2009 EDE Authors.
|
||||||
*
|
*
|
||||||
* This program is licensed under the terms of the
|
* This program is licensed under the terms of the
|
||||||
* GNU General Public License version 2 or newer.
|
* GNU General Public License version 2 or newer.
|
||||||
* See COPYING for the details.
|
* See COPYING for the details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <netinet/in.h>
|
#include <arpa/inet.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "Fortune.h"
|
#ifdef __FreeBSD__
|
||||||
|
# include <sys/types.h> /* FreeBSD keeps off_t here */
|
||||||
/* FreeBSD does not have off_t, not sure about others */
|
|
||||||
#ifndef __GLIBC__
|
|
||||||
typedef unsigned int off_t;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "Fortune.h"
|
||||||
|
|
||||||
struct FortuneFile {
|
struct FortuneFile {
|
||||||
FILE* str_file;
|
FILE* str_file;
|
||||||
FILE* dat_file;
|
FILE* dat_file;
|
||||||
|
Loading…
Reference in New Issue
Block a user