add aarch64/bits/mman.h with PROT_BTI from linux v5.8
[musl] / src / time / timegm.c
index 7148fca..4e5907d 100644 (file)
@@ -7,12 +7,12 @@ time_t timegm(struct tm *tm)
        struct tm new;
        long long t = __tm_to_secs(tm);
        if (__secs_to_tm(t, &new) < 0) {
-               errno = EINVAL;
+               errno = EOVERFLOW;
                return -1;
        }
        *tm = new;
        tm->tm_isdst = 0;
        tm->__tm_gmtoff = 0;
-       tm->__tm_zone = "GMT";
+       tm->__tm_zone = __utc;
        return t;
 }