Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Packing struct timeval

by zwon (Monsignor)
on Nov 24, 2012 at 15:52 UTC ( #1005385=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -V:timeincl
    timeincl='/usr/include/x86_64-linux-gnu/sys/time.h /usr/include/time.h
    + ';
    
  2. or download this
    use 5.010;
    use strict;
    ...
    )->Define('__WORDSIZE=64');
    $c->parse_file('/usr/include/x86_64-linux-gnu/sys/time.h');
    my $timeval = $c->pack( 'struct timeval', { tv_sec => 1, tv_usec => 0 
    +} );
    
  3. or download this
    bits/wordsize.h, line 7: macro '__WORDSIZE' redefined unidentically
        included from /usr/include/x86_64-linux-gnu//sys/cdefs.h:378
        included from /usr/include/features.h:357
        included from /usr/include/x86_64-linux-gnu/sys/time.h:23 at pack_
    +timeval2.pl line 10.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1005385]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (17)
As of 2015-07-31 14:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (278 votes), past polls