Changeset 673 for branches


Ignore:
Timestamp:
Dec 6, 2011, 10:01:12 AM (14 years ago)
Author:
Herwig Bauernfeind
Message:

Samba Server 3.3: Fix for Ticket #182

Location:
branches/samba-3.3.x/source
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/lib/os2helper.c

    r644 r673  
    1 /* This file contains helper functions for OS/2 -
    2    do not try to compile on other platforms! */
     1/*  This file contains Samba helper functions for eComStation (OS/2) -
     2 *  do not try to compile on other platforms!
     3 * 
     4 *  Copyright (C) 2007-2011
     5 *                Silvan Scherrer
     6 *                Yuri Dario
     7 *                Paul Smedley
     8 *                Herwig Bauernfeind
     9 *
     10 *  This program is free software; you can redistribute it and/or modify
     11 *  it under the terms of the GNU General Public License as published by
     12 *  the Free Software Foundation; either version 3 of the License, or
     13 *  (at your option) any later version.
     14 *
     15 *  This program is distributed in the hope that it will be useful,
     16 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
     17 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     18 *  GNU General Public License for more details.
     19 *
     20 *  You should have received a copy of the GNU General Public License
     21 *  along with this program; if not, see <http://www.gnu.org/licenses/>.
     22 */
    323
    424#ifdef __OS2__
     
    1030#define INCL_DOSMISC
    1131#define INCL_DOSMODULEMGR
     32
    1233#define INCL_DOSERRORS
    1334
     
    1637#include <stdlib.h>
    1738#include <errno.h>
     39
    1840#include <types.h>
    1941#include <string.h>
     
    503525}
    504526
     527
     528
     529
     530
     531
     532
     533
     534
     535
     536
     537
     538
     539
     540
     541
     542
     543
     544
     545
     546
     547
     548
     549
     550
     551
     552
     553
     554
     555
     556
     557
     558
     559
     560
    505561#endif
  • branches/samba-3.3.x/source/utils/net_time.c

    r206 r673  
    111111
    112112        if (t == 0) return -1;
    113 
     113#ifdef __OS2__
     114        /* eCS (OS/2) native "net time set" routine */
     115        result = os2_setdatetime(t);
     116#else
    114117        /* yes, I know this is cheesy. Use "net time system" if you want to
    115118           roll your own. I'm putting this in as it works on a large number
     
    119122        }
    120123        result = system(cmd);
     124
    121125        if (result)
    122126                d_fprintf(stderr, "%s failed.  Error was (%s)\n",
Note: See TracChangeset for help on using the changeset viewer.