source: clfs-embedded/patches/netplug-1.2.9.2-fixes-1.patch@ 0b3adee

Last change on this file since 0b3adee was 2864f08, checked in by Andrew Bradford <andrew@…>, 10 years ago

Add netplug to beyond-net

Not yet supported by bootscripts although instructions are in this
commit.

  • Property mode set to 100644
File size: 1.1 KB
  • netplug-1.2.9.2

    Submitted By: Andrew Bradford <andrew@bradfordembedded.com>
    Date: 2013-10-25
    Initial Package Version: 1.2.9.2
    Origin:	CLFS specific
    Upstream Status: Not Applied
    Description: 	Fixes build problems.
    
    diff -Naur netplug-1.2.9.2.orig/lib.c netplug-1.2.9.2/lib.c
    old new  
    200200}
    201201
    202202
    203 void
    204 __assert_fail(const char *assertion, const char *file,
    205               unsigned int line, const char *function)
    206 {
    207     do_log(LOG_CRIT, "%s:%u: %s%sAssertion `%s' failed",
    208            file, line,
    209            function ? function : "",
    210            function ? ": " : "",
    211            assertion);
    212 
    213     abort();
    214 }
    215 
    216 
    217203/*
    218204 * Local variables:
    219205 * c-file-style: "stroustrup"
  • netplug-1.2.9.2

    diff -Naur netplug-1.2.9.2.orig/netplug.h netplug-1.2.9.2/netplug.h
    old new  
    2525#include <sys/socket.h>
    2626#include <linux/netlink.h>
    2727#include <linux/rtnetlink.h>
     28#include <time.h>
    2829
    2930#define NP_SCRIPT NP_SCRIPT_DIR "/netplug"
    3031
Note: See TracBrowser for help on using the repository browser.