drop unneeded API-compatibility patch

This commit is contained in:
Miroslav Lichvar 2024-02-20 15:47:35 +01:00
parent 1ad8488a12
commit b93fae760d
2 changed files with 0 additions and 20 deletions

View File

@ -1,16 +0,0 @@
diff --git a/include/gps.h b/include/gps.h
index 55b9aa621..e5935304d 100644
--- a/include/gps.h
+++ b/include/gps.h
@@ -173,6 +173,11 @@ struct gps_fix_t {
* PPS is the encrypted military P(Y)-code */
#define STATUS_PPS_FIX 9
+// Old status names for compatibility
+#define STATUS_NO_FIX STATUS_UNK
+#define STATUS_FIX STATUS_GPS
+#define STATUS_DGPS_FIX STATUS_DGPS
+
double ept; // Expected time uncertainty, seconds
double latitude; // Latitude in degrees (valid if mode >= 2)
double epy; // Latitude position uncertainty, meters

View File

@ -18,9 +18,6 @@ URL: https://gpsd.gitlab.io/gpsd/index.html
Source0: https://download-mirror.savannah.gnu.org/releases/gpsd/%{name}-%{version}.tar.gz
Source11: gpsd.sysconfig
# Add old status names to gps.h for compatibility
Patch1: gpsd-apistatus.patch
BuildRequires: gcc
BuildRequires: dbus-devel
BuildRequires: ncurses-devel
@ -138,7 +135,6 @@ do not reference it or depend on it in any way.
%prep
%setup -q
%patch -P 1 -p1 -b .apistatus
# don't try reloading systemd when installing in the build root
sed -i 's|systemctl daemon-reload|true|' SConscript