Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/astro/openuniverse/files/patch-src_timeb.h
16462 views
1
--- src/timeb.h.orig 2016-07-26 13:11:57 UTC
2
+++ src/timeb.h
3
@@ -0,0 +1,46 @@
4
+/* Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
5
+ This file is part of the GNU C Library.
6
+
7
+ The GNU C Library is free software; you can redistribute it and/or
8
+ modify it under the terms of the GNU Library General Public License as
9
+ published by the Free Software Foundation; either version 2 of the
10
+ License, or (at your option) any later version.
11
+
12
+ The GNU C Library is distributed in the hope that it will be useful,
13
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
+ Library General Public License for more details.
16
+
17
+ You should have received a copy of the GNU Library General Public
18
+ License along with the GNU C Library; see the file COPYING.LIB. If not,
19
+ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20
+ Boston, MA 02111-1307, USA. */
21
+
22
+#ifndef _SYS_TIMEB_H
23
+#define _SYS_TIMEB_H 1
24
+
25
+//#include <features.h>
26
+
27
+#define __need_time_t
28
+#include <time.h>
29
+
30
+
31
+__BEGIN_DECLS
32
+
33
+/* Structure returned by the `ftime' function. */
34
+
35
+struct timeb
36
+ {
37
+ time_t time; /* Seconds since epoch, as from `time'. */
38
+ unsigned short int millitm; /* Additional milliseconds. */
39
+ short int timezone; /* Minutes west of GMT. */
40
+ short int dstflag; /* Nonzero if Daylight Savings Time used. */
41
+ };
42
+
43
+/* Fill in TIMEBUF with information about the current time. */
44
+
45
+extern int ftime __P ((struct timeb *__timebuf));
46
+
47
+__END_DECLS
48
+
49
+#endif /* sys/timeb.h */
50
51