Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 studying the Monastery: (9)
As of 2014-08-23 16:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (174 votes), past polls