Ticket #330: 0001-use-defined-around-__linux__-in-elif.patch

File 0001-use-defined-around-__linux__-in-elif.patch, 0.7 KB (added by padski, 2 years ago)

Patch formatted with git-format-patch and against the current Git master branch

  • avahi-daemon/setproctitle.c

    From 2a89dc560d781ee981864ce6df2c70049ff7596b Mon Sep 17 00:00:00 2001
    From: Paddy Smith <padski@gmail.com>
    Date: Wed, 2 Feb 2011 20:26:01 +0000
    Subject: [PATCH] use defined() around __linux__ in #elif
    
    ---
     avahi-daemon/setproctitle.c |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/avahi-daemon/setproctitle.c b/avahi-daemon/setproctitle.c
    index aef3555..e6f0941 100644
    a b  
    8585    va_end(ap); 
    8686 
    8787    setproctitle("-%s", t); 
    88 #elif __linux__ 
     88#elif defined(__linux__) 
    8989    size_t l; 
    9090    va_list ap; 
    9191