Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
04fbe62b
Commit
04fbe62b
authored
Sep 17, 2014
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check if timegm is present before emulating
parent
eace46c5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
11 deletions
+28
-11
config.h.in
config.h.in
+3
-0
configure
configure
+21
-10
configure.ac
configure.ac
+1
-0
skeletons/GeneralizedTime.c
skeletons/GeneralizedTime.c
+2
-0
tests/125-bitstring-constraint-OK.asn1.-X
tests/125-bitstring-constraint-OK.asn1.-X
+1
-1
No files found.
config.h.in
View file @
04fbe62b
...
@@ -45,6 +45,9 @@
...
@@ -45,6 +45,9 @@
/* Define to 1 if you have the <sys/types.h> header file. */
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
#undef HAVE_SYS_TYPES_H
/* Define to 1 if you have the `timegm' function. */
#undef HAVE_TIMEGM
/* Define to 1 if you have the <unistd.h> header file. */
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
#undef HAVE_UNISTD_H
...
...
configure
View file @
04fbe62b
#! /bin/sh
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for asn1c 0.9.2
7
.
# Generated by GNU Autoconf 2.69 for asn1c 0.9.2
8
.
#
#
# Report bugs to <vlm@lionet.info>.
# Report bugs to <vlm@lionet.info>.
#
#
...
@@ -590,8 +590,8 @@ MAKEFLAGS=
...
@@ -590,8 +590,8 @@ MAKEFLAGS=
# Identity of this package.
# Identity of this package.
PACKAGE_NAME
=
'asn1c'
PACKAGE_NAME
=
'asn1c'
PACKAGE_TARNAME
=
'asn1c'
PACKAGE_TARNAME
=
'asn1c'
PACKAGE_VERSION
=
'0.9.2
7
'
PACKAGE_VERSION
=
'0.9.2
8
'
PACKAGE_STRING
=
'asn1c 0.9.2
7
'
PACKAGE_STRING
=
'asn1c 0.9.2
8
'
PACKAGE_BUGREPORT
=
'vlm@lionet.info'
PACKAGE_BUGREPORT
=
'vlm@lionet.info'
PACKAGE_URL
=
''
PACKAGE_URL
=
''
...
@@ -1320,7 +1320,7 @@ if test "$ac_init_help" = "long"; then
...
@@ -1320,7 +1320,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
# This message is too long to be a string in the A/UX 3.1 sh.
cat
<<
_ACEOF
cat
<<
_ACEOF
\`
configure' configures asn1c 0.9.2
7
to adapt to many kinds of systems.
\`
configure' configures asn1c 0.9.2
8
to adapt to many kinds of systems.
Usage:
$0
[OPTION]... [VAR=VALUE]...
Usage:
$0
[OPTION]... [VAR=VALUE]...
...
@@ -1390,7 +1390,7 @@ fi
...
@@ -1390,7 +1390,7 @@ fi
if
test
-n
"
$ac_init_help
"
;
then
if
test
-n
"
$ac_init_help
"
;
then
case
$ac_init_help
in
case
$ac_init_help
in
short
|
recursive
)
echo
"Configuration of asn1c 0.9.2
7
:"
;;
short
|
recursive
)
echo
"Configuration of asn1c 0.9.2
8
:"
;;
esac
esac
cat
<<
\
_ACEOF
cat
<<
\
_ACEOF
...
@@ -1501,7 +1501,7 @@ fi
...
@@ -1501,7 +1501,7 @@ fi
test
-n
"
$ac_init_help
"
&&
exit
$ac_status
test
-n
"
$ac_init_help
"
&&
exit
$ac_status
if
$ac_init_version
;
then
if
$ac_init_version
;
then
cat
<<
\
_ACEOF
cat
<<
\
_ACEOF
asn1c configure 0.9.2
7
asn1c configure 0.9.2
8
generated by GNU Autoconf 2.69
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
Copyright (C) 2012 Free Software Foundation, Inc.
...
@@ -1924,7 +1924,7 @@ cat >config.log <<_ACEOF
...
@@ -1924,7 +1924,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
running configure, to aid debugging if configure makes a mistake.
It was created by asn1c
$as_me
0.9.2
7
, which was
It was created by asn1c
$as_me
0.9.2
8
, which was
generated by GNU Autoconf 2.69. Invocation command line was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0
$@
$ $0
$@
...
@@ -2739,7 +2739,7 @@ fi
...
@@ -2739,7 +2739,7 @@ fi
# Define the identity of the package.
# Define the identity of the package.
PACKAGE
=
'asn1c'
PACKAGE
=
'asn1c'
VERSION
=
'0.9.2
7
'
VERSION
=
'0.9.2
8
'
cat
>>
confdefs.h
<<
_ACEOF
cat
>>
confdefs.h
<<
_ACEOF
...
@@ -13302,6 +13302,17 @@ _ACEOF
...
@@ -13302,6 +13302,17 @@ _ACEOF
fi
fi
done
done
for
ac_func
in
timegm
do
:
ac_fn_c_check_func
"
$LINENO
"
"timegm"
"ac_cv_func_timegm"
if
test
"x
$ac_cv_func_timegm
"
=
xyes
;
then
:
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_TIMEGM 1
_ACEOF
fi
done
ac_config_files
=
"
$ac_config_files
skeletons/tests/Makefile libasn1compiler/Makefile libasn1parser/Makefile libasn1print/Makefile asn1c/tests/Makefile libasn1fix/Makefile doc/docsrc/Makefile skeletons/Makefile examples/Makefile asn1c/Makefile doc/Makefile asn1c.spec Makefile"
ac_config_files
=
"
$ac_config_files
skeletons/tests/Makefile libasn1compiler/Makefile libasn1parser/Makefile libasn1print/Makefile asn1c/tests/Makefile libasn1fix/Makefile doc/docsrc/Makefile skeletons/Makefile examples/Makefile asn1c/Makefile doc/Makefile asn1c.spec Makefile"
...
@@ -13840,7 +13851,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
...
@@ -13840,7 +13851,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
# values after options handling.
ac_log="
ac_log="
This file was extended by asn1c
$as_me
0.9.2
7
, which was
This file was extended by asn1c
$as_me
0.9.2
8
, which was
generated by GNU Autoconf 2.69. Invocation command line was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES =
$CONFIG_FILES
CONFIG_FILES =
$CONFIG_FILES
...
@@ -13906,7 +13917,7 @@ _ACEOF
...
@@ -13906,7 +13917,7 @@ _ACEOF
cat
>>
$CONFIG_STATUS
<<
_ACEOF
|| ac_write_fail=1
cat
>>
$CONFIG_STATUS
<<
_ACEOF
|| ac_write_fail=1
ac_cs_config="`
$as_echo
"
$ac_configure_args
" | sed 's/^ //; s/[
\\
""
\`\$
]/
\\\\
&/g'`"
ac_cs_config="`
$as_echo
"
$ac_configure_args
" | sed 's/^ //; s/[
\\
""
\`\$
]/
\\\\
&/g'`"
ac_cs_version="
\\
ac_cs_version="
\\
asn1c config.status 0.9.2
7
asn1c config.status 0.9.2
8
configured by
$0
, generated by GNU Autoconf 2.69,
configured by
$0
, generated by GNU Autoconf 2.69,
with options
\\
"
\$
ac_cs_config
\\
"
with options
\\
"
\$
ac_cs_config
\\
"
...
...
configure.ac
View file @
04fbe62b
...
@@ -91,6 +91,7 @@ AC_SEARCH_LIBS(getopt, iberty)
...
@@ -91,6 +91,7 @@ AC_SEARCH_LIBS(getopt, iberty)
AC_CHECK_FUNCS(strtoimax strtoll)
AC_CHECK_FUNCS(strtoimax strtoll)
AC_CHECK_FUNCS(mergesort)
AC_CHECK_FUNCS(mergesort)
AC_CHECK_FUNCS(mkstemps)
AC_CHECK_FUNCS(mkstemps)
AC_CHECK_FUNCS(timegm)
AC_OUTPUT( \
AC_OUTPUT( \
skeletons/tests/Makefile \
skeletons/tests/Makefile \
...
...
skeletons/GeneralizedTime.c
View file @
04fbe62b
...
@@ -128,6 +128,7 @@ static long GMTOFF(struct tm a){
...
@@ -128,6 +128,7 @@ static long GMTOFF(struct tm a){
tzset(); \
tzset(); \
} while(0); } while(0);
} while(0); } while(0);
#ifndef HAVE_TIMEGM
#ifdef _EMULATE_TIMEGM
#ifdef _EMULATE_TIMEGM
static
time_t
timegm
(
struct
tm
*
tm
)
{
static
time_t
timegm
(
struct
tm
*
tm
)
{
time_t
tloc
;
time_t
tloc
;
...
@@ -138,6 +139,7 @@ static time_t timegm(struct tm *tm) {
...
@@ -138,6 +139,7 @@ static time_t timegm(struct tm *tm) {
return
tloc
;
return
tloc
;
}
}
#endif
/* _EMULATE_TIMEGM */
#endif
/* _EMULATE_TIMEGM */
#endif
#ifndef __ASN_INTERNAL_TEST_MODE__
#ifndef __ASN_INTERNAL_TEST_MODE__
...
...
tests/125-bitstring-constraint-OK.asn1.-X
View file @
04fbe62b
<!-- XML DTD generated by asn1c-0.9.2
7
-->
<!-- XML DTD generated by asn1c-0.9.2
8
-->
<!-- ASN.1 module
<!-- ASN.1 module
ModuleBitStringConstraint { iso org(3) dod(6) internet(1) private(4)
ModuleBitStringConstraint { iso org(3) dod(6) internet(1) private(4)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment