diff -Nru dahdi-linux-2.11.1~dfsg/debian/changelog dahdi-linux-2.11.1~dfsg/debian/changelog --- dahdi-linux-2.11.1~dfsg/debian/changelog 2018-01-03 10:41:02.000000000 -0200 +++ dahdi-linux-2.11.1~dfsg/debian/changelog 2019-02-07 10:15:57.000000000 -0200 @@ -1,3 +1,10 @@ +dahdi-linux (1:2.11.1~dfsg-1ubuntu5) disco; urgency=medium + + * Linux 5.0 compatibility (LP: #1813058) + - d/p/kernel-compat-5.0.patch + + -- Marcelo Henrique Cerri Thu, 07 Feb 2019 10:15:57 -0200 + dahdi-linux (1:2.11.1~dfsg-1ubuntu4) bionic; urgency=medium * Linux 4.15 compatibility (LP: #1737746) diff -Nru dahdi-linux-2.11.1~dfsg/debian/patches/kernel-compat-5.0.patch dahdi-linux-2.11.1~dfsg/debian/patches/kernel-compat-5.0.patch --- dahdi-linux-2.11.1~dfsg/debian/patches/kernel-compat-5.0.patch 1969-12-31 21:00:00.000000000 -0300 +++ dahdi-linux-2.11.1~dfsg/debian/patches/kernel-compat-5.0.patch 2019-02-07 10:11:42.000000000 -0200 @@ -0,0 +1,18 @@ +--- a/include/dahdi/kernel.h ++++ b/include/dahdi/kernel.h +@@ -1695,4 +1695,15 @@ + + #endif /* DAHDI_PRINK_MACROS_USE_debug */ + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0) ++static inline void do_gettimeofday(struct timeval *tv) ++{ ++ struct timespec64 now; ++ ++ ktime_get_real_ts64(&now); ++ tv->tv_sec = now.tv_sec; ++ tv->tv_usec = now.tv_nsec/1000; ++} ++#endif ++ + #endif /* _DAHDI_KERNEL_H */ diff -Nru dahdi-linux-2.11.1~dfsg/debian/patches/series dahdi-linux-2.11.1~dfsg/debian/patches/series --- dahdi-linux-2.11.1~dfsg/debian/patches/series 2018-01-03 10:36:27.000000000 -0200 +++ dahdi-linux-2.11.1~dfsg/debian/patches/series 2019-02-07 10:08:20.000000000 -0200 @@ -13,3 +13,4 @@ kernel-compat-4.13.patch kernel-compat-4.15_0001-xpp-move-command_timer-functions-to-xbus-core.patch kernel-compat-4.15_0002-fix-building-with-4.15-init_timer-setup_timer.patch +kernel-compat-5.0.patch