Ticket #46466: lirc-yosemite-fix.diff

File lirc-yosemite-fix.diff, 3.1 KB (added by DanielO (Daniel O'Connor), 10 years ago)
  • lirc/Portfile

    diff -Nur /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/sysutils/lirc/Portfile lirc/Portfile
    old new  
    2121
    2222livecheck.distname  LIRC
    2323
    24 patchfiles          patch-osx_patches.diff
     24patchfiles          patch-osx_patches.diff patch-daemons-receive.c.diff patch-daemons-transmit.c.diff
    2525
    2626configure.args  --with-driver=udp --with-devdir=${prefix}/var/run \
    2727                --sysconfdir=${prefix}/etc --localstatedir=${prefix}/var \
  • lirc/files/patch-daemons-receive.c.diff

    diff -Nur /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/sysutils/lirc/files/patch-daemons-receive.c.diff lirc/files/patch-daemons-receive.c.diff
    old new  
     1--- daemons/receive.c.orig      2015-01-07 21:18:22.000000000 +1030
     2+++ daemons/receive.c   2015-01-07 21:19:52.000000000 +1030
     3@@ -286,7 +286,7 @@
     4        return (retval);
     5 }
     6 
     7-inline int expectone(struct ir_remote *remote, int bit)
     8+int expectone(struct ir_remote *remote, int bit)
     9 {
     10        if (is_biphase(remote)) {
     11                int all_bits = bit_count(remote);
     12@@ -332,7 +332,7 @@
     13        return (1);
     14 }
     15 
     16-inline int expectzero(struct ir_remote *remote, int bit)
     17+int expectzero(struct ir_remote *remote, int bit)
     18 {
     19        if (is_biphase(remote)) {
     20                int all_bits = bit_count(remote);
     21@@ -414,7 +414,7 @@
     22        return (deltas);
     23 }
     24 
     25-inline int get_header(struct ir_remote *remote)
     26+int get_header(struct ir_remote *remote)
     27 {
     28        if (is_rcmm(remote)) {
     29                lirc_t deltap, deltas, sum;
     30@@ -524,7 +524,7 @@
     31        return (1);
     32 }
     33 
     34-inline int get_repeat(struct ir_remote *remote)
     35+int get_repeat(struct ir_remote *remote)
     36 {
     37        if (!get_lead(remote))
     38                return (0);
  • lirc/files/patch-daemons-transmit.c.diff

    diff -Nur /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/sysutils/lirc/files/patch-daemons-transmit.c.diff lirc/files/patch-daemons-transmit.c.diff
    old new  
     1--- daemons/transmit.c.orig     2015-01-07 21:38:21.000000000 +1030
     2+++ daemons/transmit.c  2015-01-07 21:38:34.000000000 +1030
     3@@ -179,7 +179,7 @@
     4        }
     5 }
     6 
     7-inline void send_data(struct ir_remote *remote, ir_code data, int bits, int done)
     8+void send_data(struct ir_remote *remote, ir_code data, int bits, int done)
     9 {
     10        int i;
     11        int all_bits = bit_count(remote);
     12@@ -313,7 +313,7 @@
     13        send_trail(remote);
     14 }
     15 
     16-inline void send_code(struct ir_remote *remote, ir_code code, int repeat)
     17+void send_code(struct ir_remote *remote, ir_code code, int repeat)
     18 {
     19        if (!repeat || !(remote->flags & NO_HEAD_REP))
     20                send_header(remote);