Commit 17cb359e authored by Ulrich Huber's avatar Ulrich Huber Committed by Oliver Horst
Browse files

[add] Add missing types to libc required by lwIP

parent a81592b5
......@@ -4,6 +4,7 @@
// Copyright: https://github.com/embeddedartistry/embedded-resources/tree/master/examples/c
#include <stddef.h>
#include <sys/types.h>
#ifdef __cplusplus
extern "C" {
......
//
// Created by ulrich on 18.05.20.
//
#ifndef TOKI_TIME_H
#define TOKI_TIME_H
typedef signed long time_t;
struct timespec {
long tv_sec; /* seconds */
long tv_nsec; /* nanoseconds */
};
struct timeval {
long tv_sec; /* seconds */
long tv_usec; /* microseconds */
};
#endif //TOKI_TIME_H
/* Copyright (C) 1991-2017 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
The GNU C Library 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
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
/*
* POSIX Standard: 2.6 Primitive System Data Types <sys/types.h>
*/
#ifndef TOKI_TYPES_H
#define TOKI_TYPES_H
#ifndef _SSIZE_T_DECLARED
typedef long signed int ssize_t;
#define SSIZE_MAX sizeof(ssize_t)
#define _SSIZE_T_DECLARED
#endif
#endif //TOKI_TYPES_H
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment