chiark / gitweb /
build-sys: re-add old symbols for abi compat
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 16 Feb 2015 17:13:20 +0000 (12:13 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 16 Feb 2015 17:19:46 +0000 (12:19 -0500)
For two releases those exported with version 183 by mistake, and then
they were fixed to have version 215 (015419c0df libudev: fix symbol
version for udev_queue_flush() and udev_queue_get_fd()). But that
breaks ABI compatibility for binaries compiled with udev from before
that commit. There most likely very few such binaries, if any, but as
a matter of principle we should export the old symbols too, in order
to keep full compatibility.

src/libudev/libudev-queue.c

index 8ef1f3d4b05e0bac3515f8609dacd2f1807fa421..ae0b415e368d9f6a31894e7a75018f028935d289 100644 (file)
@@ -268,3 +268,6 @@ _public_ int udev_queue_flush(struct udev_queue *udev_queue) {
 
         return flush_fd(udev_queue->fd);
 }
+
+__asm__(".symver udev_queue_flush,udev_queue_flush@LIBUDEV_183");
+__asm__(".symver udev_queue_get_fd,udev_queue_get_fd@LIBUDEV_183");